Hi,
You are missing the ; at the end of the SQL statement
try $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY
id;";
instead of $query = "SELECT * FROM question WHERE answer<>'1' AND id>250
ORDER BY id";
CPereira
----- Original Message -----
From: "Martin Kampherbeek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 25, 2001 8:17 AM
Subject: Error
> I still get this error. Can someone help me to solve this?
> MySQL Query Failed. Error 1030: Got error -1 from table handler
>
>
> $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY
id";
>
> $result = mysql_query($query) or die('MySQL Query Failed. Error
> '.mysql_errno().':
> '.mysql_error());
>
> $number = mysql_num_rows($result);
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php