You are here: Re: Update fails « PHP Language « IT news, forums, messages
Re: Update fails

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация