Server Processing WHERE clause by $_GET
Server Processing WHERE clause by $_GET

Hi. At my server_processing.php I introduced this line
require( 'ssp.class.php' );
$test = $_GET['factionid'];
echo json_encode(
SSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, null, "Faction = '$test'" )
);
But it doesn't work, it doesn't get the $test.
How can I modify that?
This discussion has been closed.
Answers
Hard to tell without a test case. Can you please publish one - or link to a test page.
I think you need to use
array('Faction' => $test)
. Or you could use the Editor libraries which are more explicit with their API for conditions.Allan