Re: *Cannot connect to db

From: Date: Wed, 18 Dec 2002 15:43:55 +0000
Subject: Re: *Cannot connect to db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128733@lists.php.net to get a copy of this message
Hi, leave out the "@", and give us the error message. "@" suppresses error messages of any function. HTH, Bastian > 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

« previous php.general (#128733) next »