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