note 14703 rejected and deleted from function.mysql-connect.php by alindeman
| From: | alindeman@php.net | Date: | Fri, 10 Aug 2001 13:05:11 +0000 |
| Subject: | note 14703 rejected and deleted from function.mysql-connect.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16544@lists.php.net to get a copy of this message | ||
Does anyone have an idea how to connect to an remote mysql server via php?
-------------------------------------
What is wrong with this script?
$link = mysql_connect($dbServer, $dbUser, $dbPass) or die ("Could not connect");
print ("Connected successfully");
mysql_select_db($dbName, $link) or die ("Could not select DB: ".$dbName);
mysql_close ($link);
----------------------------
Though the permissions for $dbUser is granted to @% and the connection is successfully, I just
cannot select any database table!
Thanks for your help!