RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect()
| From: | Brunner, Daniel | Date: | Wed, 04 Apr 2001 13:59:50 +0000 |
| Subject: | RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect() | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8208@lists.php.net to get a copy of this message | ||
Hello...
Either the Username or Password or Database does not exist...
Do this
$db = mysql_connect(server, $user, $password)
or die ("Sorry something is wrong");
$select = mysql_select_db("intranet", $db);
or die ("Sorry something is wrong");
That way you can see if it connects and or if the Database does
exist.....
You can also delete $select as well so it would read.....
mysql_select_db("intranet", $db);
or die ("Sorry something is wrong");
That what I use....
That really might be the problem......
Learn how to put in debug stuff..... It's easier to see your
mistakes....I know I had a bunch...
Dan
> ----------
> From: Patrick Schäfer
> Sent: Wednesday, April 4, 2001 7:41 AM
> To: PHP
> Subject: [PHP-DB] Fatal error: Call to unsupported or undefined
> function mysql_connect()
>
> Can anybody help me with this problem ????
>
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in
> dbopen.php on line 7
>
> $server = "localhost";
> $user = "dbuser";
> $password = "pass";
> $db = mysql_connect($server, $user, $password); --> This is line 7 of
> my
> script
> $select = mysql_select_db("intranet", $db);
>
> Thanks,
> Patrick
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>