PHP error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Solthiest
Forum Newbie
Posts: 1
Joined: Thu Jan 22, 2009 7:50 am

PHP error

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PHP error

Post by VladSun »

Uncomment

Code: Select all

extension=php_mysql.dll
line (i.e. remove the ";") in your php.ini and restart Apache.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply