Page 1 of 1

PHP error

Posted: Thu Jan 22, 2009 7:54 am
by Solthiest
Hello all, I have recently gotten into PHP and MySQL software programming, and I am at a lost as of right now. When I attempt to view the page I get this message:

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php on line 343

$connId = mysql_connect($DBHOST, $DBUSER, $DBPASS);

is the only line of code on line 343..

If anyone can help me with this I would most appreciate it.

Re: PHP error

Posted: Thu Jan 22, 2009 8:43 am
by VladSun
Uncomment

Code: Select all

extension=php_mysql.dll
line (i.e. remove the ";") in your php.ini and restart Apache.