Hi Folks,
I want to do something like the following:
$db = mysql_connect(localhost, myuser) or die(Connect failed : .
mysql_error());
mysql_select_db(mydb,$db) or die(SELECT_DB failed : . mysql_error
());
$result = mysql_query(SELECT * FROM mytable, $db) or die(Query
failed : .
This might be a stupid idea, but did you remember to issue the Flush Privelages;
command to the mysql database after granting your user all the rights?
--John
Christian Schlaefcke [EMAIL PROTECTED] wrote:
Hi Folks,
I want to do something like the following:
$db = mysql_connect(localhost,
Hi
try $db = mysql_connect(localhost, myuser,mypassword) - without it you are not
submitting a password
Peter
-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 13:31
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Newbie Question
PROTECTED]
Subject: [PHP-DB] Newbie Question - mysql_select_db fails with access
denied.
Hi Folks,
I want to do something like the following:
$db = mysql_connect(localhost, myuser) or die(Connect failed : .
mysql_error());
mysql_select_db(mydb,$db) or die(SELECT_DB failed
-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 13:31
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Newbie Question - mysql_select_db fails with access
denied.
Hi Folks,
I want to do something like the following:
$db
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Newbie Question - mysql_select_db fails with access
denied.
Hi Folks,
I want to do something like the following:
$db = mysql_connect(localhost, myuser) or die(Connect failed : .
mysql_error());
mysql_select_db(mydb