function get_table_join_6($table1, $table2, $table3, $table4, $table5, $primaryKey, $columns, $where) { $sql_details = array('user' => $this->ci->db->username, 'pass' => $this->ci->db->password, 'db' => $this->ci->db->database, 'host' => $this->ci->db->hostname); require 'ssp.class.php'; echo json_encode(SSP::more_complex($_POST, $sql_details, $table1, $table2, $table3, $table4, $table5, $primaryKey, $columns, $where)); }