Server Processing WHERE clause by $_GET

Server Processing WHERE clause by $_GET

stefanabcdefstefanabcdef Posts: 1Questions: 1Answers: 0

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?

Answers

  • rf1234rf1234 Posts: 2,808Questions: 85Answers: 406

    Hard to tell without a test case. Can you please publish one - or link to a test page.

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    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

This discussion has been closed.