My RESTful interface works fine until I try to pass a WHERE statement
Example:
perimeters that are passed:
SELECT = "this";
FROM = "that";
WHERE = " 'ID' = 332";
the URL might look like this
www.example.com/rest.php?SELECT=this&FROM=that&WHERE='ID'=332
then in my php script
if (isset($_GET['SELECT']))
{
$SELECT = $_GET['SELECT'];
}
if (isset($_GET['FROM']))
{
$FROM = $_GET['FROM'];
}
if (isset($_GET['WHERE']))
{
$WHERE = $_GET['WHERE'];
}
So Im thinking that the equals sign in the WHERE statement is messing it up. Would I be correct in this statement?
And if so what might be an alternative?