Re: MySQL ERRORS

From: Date: Tue, 08 May 2007 06:44:32 +0000
Subject: Re: MySQL ERRORS
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43562@lists.php.net to get a copy of this message
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/

« previous php.db (#43562) next »