*Cannot connect to db
| From: | Alexey Lysenkov | Date: | Wed, 18 Dec 2002 15:43:20 +0000 |
| Subject: | *Cannot connect to db | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128730@lists.php.net to get a copy of this message | ||
mySQL; php running in safe mode; compared to the other code on the same
server. here is mine - I don't get any connection. What could be wrong?
Also, what does this @ sign mean before the mysql_connect?
function dbopen(){
$tablename = "balzerdez02";
$dbname = "marketingcompany";
$hostname="localhost";
$username="tmc";
$password="t7t7k1k1";
$dbconn=@mysql_connect($hostname,$username,$password);
mysql_select_db($dbname) or die ("Could not find the table");
echo("$dbconn :- connect");
}
dbopen();
Thanks.
-Alex