For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2007 > Re: [PHP-DB] MySQL ERRORS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] MySQL ERRORS
Chris

2007-05-08, 3:58 am

Chetan Graham wrote:
> Hi to All,
>
> I am having problems with the MySQL DB. It started with this command from
> a call in a PHP script...
>
> "INSERT INTO docprouser (id,valid,password)VALUES
> ('user5','Y',md5('ksobhinyai'));" or die(mysql_error());"


That doesn't do anything (it will create a parse error).

You need to:

mysql_query("INSERT INTO docprouser (id,valid,password) VALUES(
'user5','Y',md5('ksobhinyai'))") or die(mysql_error());

--
Postgresql & php tutorials
http://www.designmagick.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com