Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001041

RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect() From: Brunner, Daniel (daniel.brunner <email protected>)
Date: 04/04/01

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 <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>