Posted by Geoff on 07/17/07 09:29
"Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
news:ksednbFQpP3f3QHbnZ2dnUVZ_hKdnZ2d@giganews.com...
>I tried removing the quotes from the query:
> $check = mysql_query("SELECT * FROM user WHERE id = $userID")or die("query
> failed!");
>
> and it comes back with my die message "query failed";
>
> can you advise further?
>
put mysql_error() in your die bit
or die(mysql_error())
it'll tell you what mysql is failing on
[Back to original message]
|