Re: Cannot connect to Database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Supersky wrote:
Hello,

I'm using the following statements to connect to a database.

<?php $conn = mysql_connect('localhost', 'root', '') or die ("Can't Connect To
Database");
$db = mysql_select_db("testDB", "$conn") or die ("Can't Select Database". mysql_error()); ?>


But I cannot, and I see Fatal error: Call to undefined function mysql_connect() in ....

My OS is WinXP, I have installed Mysql 4.1, Apache 2.0.52, and PHP 5.03. Apache and PHP work well if I don't connect to a database.

Please any help or suggestions are welcome. Thanks!

Gan


uncomment mysql.dll in your php.ini and restart apache

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux