HElp!!!!!!!!
| From: | Dhaval Desai | Date: | Thu, 26 Oct 2000 18:09:00 +0000 |
| Subject: | HElp!!!!!!!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22181@lists.php.net to get a copy of this message | ||
Hey!
Do u guyz think there is any error in this code..??
I am adding a new user with some priviliges..It shows
some error for me...
<?php
mysql_connect("localhost","root","dhaval");
$select = mysql_select_db("mysql");
$search = "INSERT INTO user
(Host,Username,Password,Select_priv,Insert_priv,Update_priv,Delete_priv)
VALUES
('%','jay','password('password')','Y','Y','Y','Y')";
$try = mysql_db_query($search);
if($try)
{
echo "Success";
}
else
{
echo mysql_error();
}
?>
Please help me!1...Ugrgent help needed...
Thanx a lot!!
Cheers!~
Dhaval Desai
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/