function get_table_join($table, $table2, $primaryKey, $columns, $on, $where, $group, $dataArray) { $config = new config(); $sql_details = $config->sql_details(); require 'ssp.class.php'; echo json_encode(SSP::complexjoin($_POST, $sql_details, $table, $table2, $primaryKey, $columns, $on, $where, $group, $dataArray)); }