phpbar.de logo

Mailinglisten-Archive

[php] MySQL: order by

[php] MySQL: order by

=?us-ascii?Q?Andre_Gross?= gross_(at)_avis-net.de
Fri, 23 Feb 2001 10:29:53 +0100


Hallo,

> Hallo, was stimmt an der Abfrage unten nicht? Gruss MAREK.
> 
> Error
> SQL-query:
> 
> >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

Es fehlt eine where-Bedingung. Also entweder

SELECT id,head,body from home order by id desc;

oder

SELECT id,head,body from home where blubb=blabb order by id desc;

Gru?
Andre 


php::bar PHP Wiki   -   Listenarchive