Re: newbie question: results by page

From: John (gt2243a_at_mail.gatech.edu)
Date: 03/10/04


Date: Wed, 10 Mar 2004 13:17:44 -0500


"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message
news:c2k3qk$mrl$1$8300dec7@news.demon.co.uk...
> If you want the data to be presented in a particular order then use the
> ORDER BY [column name] DESC clause of your sql SELECT statement.
>
> See
>
http://www.mysql.com/documentation/mysql/bychapter/manual_SQL_Syntax.html#SELECT
> for details.
>

I tried this but this is what I get: Invalid query: You have an error in
your SQL syntax. Check the manual that corresponds to your MySQL server
version for the right syntax to use near 'ORDER BY id DESC' at line 1

What I used is "ORDER BY id DESC" since I'm trying to display my records
from last entered to first.



Relevant Pages

  • The Essence of a Second Computation is Time
    ... ###> execute error:You have an error in your SQL syntax. ... Check the manual that corresponds to your MySQL server version for the right syntax to use near 'compute sumby a' at line 1 ...
    (sci.math)
  • Re: Volltextsuche: ERROR 1064 (42000): You have an error
    ... You have an error in your SQL syntax; ... manual that corresponds to your MySQL server version for the right ... So steht's doch auch in der Doku. ... Von NATURAL LANGUAGE MODE steht da nix. ...
    (de.comp.datenbanken.mysql)
  • Re: Restoring mysql 3.23.54a-0.woody backups to 4.0.24-10 (sarge)
    ... You have an error in your SQL syntax. ... the manual that corresponds to your MySQL server version for the ... DROP TABLE IF EXISTS mails; ...
    (Debian-User)
  • Re: Not finding results
    ... MySQL error 1064: You have an error in your SQL syntax. ... manual that corresponds to your MySQL server version for the right ... PHP code is run, and all it's variables evaluated, on the server-side before ...
    (alt.php)
  • Re: Eternal September having troubles?
    ... anyone else experiencing similar problems? ... It still doing it despite me completely removing the account and reinstalling it, I've never experienced any trouble at all until yesterday here's the message box I receive when I post.. ... error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'H'older@xxxxxxxxx' AND ...
    (uk.tech.digital-tv)