ORDER BY
Posted: Sat Sep 13, 2003 3:23 am
I've read the other post here about ORDER BY by it didn't help me much. I've also tried to look for code examples without any luck. Is there something wrong wih the syntax in this code?
Later in the script the $result variable is being used like this:
The script works fine if I remove the ORDER BY products DESC in the $result variable. Like this:
Code: Select all
$result = mysql_query( "SELECT * FROM products ORDER BY products DESC" );Code: Select all
while ($row = mysql_fetch_assoc($result))Code: Select all
$result = mysql_query( "SELECT * FROM products" );