phpbar.de logo

Mailinglisten-Archive

[php] MySQL: order by

[php] MySQL: order by

Georg Kornmayer georg.kornmayer_(at)_kp-computertechnik.de
Fri, 23 Feb 2001 10:54:20 +0100


> >SELECT id,head,body from home where order by id desc;
> 
> MySQL said: You have an error in your SQL syntax near 'order by id
> desc;' at line 1

wenn du eine where clause angibst musst du auch eine bedingung stellen.
bsp: SELECT id,head,body from home where id = '2' order by id desc;


php::bar PHP Wiki   -   Listenarchive