[PHP] Re: database selection

2003-02-17 Thread Hans Prins
One more question about this: If I wanted to select the last row, would I use this code? $query = "SELECT * FROM polls ORDER BY pollID DESC LIMIT 0,1"; "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > thank you, > > that did the trick :) > >

[PHP] Re: database selection

2003-02-16 Thread Hans Prins
thank you, that did the trick :) "Thomas Seifert" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote: > > > Hello, > > > > Im trying to select only one row in a mysql database (in this case

[PHP] Re: database selection

2003-02-16 Thread Thomas Seifert
On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote: > Hello, > > Im trying to select only one row in a mysql database (in this case a poll > with the smallest pollID)... > Each row has a field called "pollID" which is the primary key and is auto > incremented when a n