Re: MySQL ERRORS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux