Re: [PHP] numrows

2001-08-23 Thread Martin Kampherbeek
il" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [PHP] numrows Hello, Chris, with all due respect, DESC is a reserved word for SQL. is english ORDER BY ID DESC meand sort by id in descending order. Martin, your SQL seems to

Re: [PHP] numrows

2001-08-23 Thread ERISEN, Mehmet Kamil
Hello, Chris, with all due respect, DESC is a reserved word for SQL. is english ORDER BY ID DESC meand sort by id in descending order. Martin, your SQL seems to be fine. Are you sure that you are connected to your database. I have run the following SQL against my database SELECT * FROM users

Re: [PHP] numrows

2001-08-23 Thread Raphael Pirker
better late than never :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] numrows

2001-08-23 Thread Chris Fry
Sorry - it's late! "I knew that" he said. Raphael Pirker wrote: > Hi Chris, > FYI: > > "Chris Fry" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Should be ORDER BY ID, DESC > > actually it shouldn't be this way, since DESC is an option of the ORDER BY >

Re: [PHP] numrows

2001-08-23 Thread Raphael Pirker
Hi Chris, FYI: "Chris Fry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Should be ORDER BY ID, DESC actually it shouldn't be this way, since DESC is an option of the ORDER BY command meaning DESC... ORDER BY [column] [ASC | DESC] (ASC is default) so the o

Re: [PHP] numrows

2001-08-23 Thread Steve Brett
i'd have a look at the table structure. also if you're using <> to denote inequality then use != both of the previous posts are incorrect Steve "Chris Fry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Should be ORDER BY ID, DESC > > Chris > > Martin Kamph

Re: [PHP] numrows

2001-08-23 Thread Chris Fry
Should be ORDER BY ID, DESC Chris Martin Kampherbeek wrote: > What's wrong with this? I get the error: Warning: Supplied argument is not a valid >MySQL result resource in /home/sites/site49/web/vragen/vragen.php on line 42 > > $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER

[PHP] numrows

2001-08-23 Thread Martin Kampherbeek
What's wrong with this? I get the error: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site49/web/vragen/vragen.php on line 42 $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id DESC"; $result = MYSQL_QUERY($query); $number = MYSQL_NUM_