I'm using $_GET[]
to get a unique id number from the url and then displaying every row that matches that unique id. his displays all the rows but now i'm stuck on how to corectly ordering it by another column name, as it wont allow me to use ORDER BY once I have used the $_GET[]
. My query code is as follows
$query = 'SELECT * FROM magazine WHERE issue_number = ' . $_GET['unique_issue_id'];
I now want to order it by the issue_number
column.
Thanks in advance