stfc_boy
11-10-2007, 01:10 PM
Hello,
I have a query:
$SQL = "SELECT * FROM table WHERE id=".$_GET['id'];
But if I add order by to it:
$SQL = "SELECT * FROM table WHERE id=".$_GET['id'] Order by table_id;
It fails? I know it's something to do with the " being out of place, but surely it has to be there?
Thank you
I have a query:
$SQL = "SELECT * FROM table WHERE id=".$_GET['id'];
But if I add order by to it:
$SQL = "SELECT * FROM table WHERE id=".$_GET['id'] Order by table_id;
It fails? I know it's something to do with the " being out of place, but surely it has to be there?
Thank you