function get_table_join($table, $primaryKey, $columns, $tableJoin, $joinWhere, $where) { $config = new config(); $sql_details = $config->sql_details(); require 'ssp.class.php'; echo json_encode(SSP::simplejoin3($_POST, $sql_details, $table, $primaryKey, $columns, $tableJoin, $joinWhere, $where)); }