Re: *Cannot connect to db
| From: | bbonkosk at tampabay dot rr dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: *Cannot connect to db | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128734@lists.php.net to get a copy of this message | ||
the '@' sign suppresses the error/warning messages. Perhaps you would want to
leave that off in a development environment. It may lead to some good keys to
finding the solution..
-Brad
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>