Hi!
In a PHP script I have this query:
$query = "SELECT name, description FROM mytable
WHERE file_id='$file_id'
AND sector='1'
OR file_id='$file_id'
AND sector='2'
ORDER by name";
I can't get the sort to work and am pretty sure I've got the syntax wrong for the "ORDER by" part.. any thoughts would be great!
In a PHP script I have this query:
$query = "SELECT name, description FROM mytable
WHERE file_id='$file_id'
AND sector='1'
OR file_id='$file_id'
AND sector='2'
ORDER by name";
I can't get the sort to work and am pretty sure I've got the syntax wrong for the "ORDER by" part.. any thoughts would be great!