MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\practice\testsql.php on line 17
Posted by: William
Date: January 12, 2007 11:14AM

1. Add the system variable PHPRC to your computer by:
- find the My Computer icon
- RIGHT click it and select properties
- select the advanced tab and click on the button labeled 'environment variables'
- Under system variables, click 'new'
- var name is 'PHPRC'
- value is the folder where php is installed, eg.: 'c:\php'
- Restart your computer

2. Make sure you have the latest PHP/MySQL Connector
3. Make sure that in php.ini, the lines:
extension=php_mysql.dll
extension=php_mysqli.dll
Are uncommented (comments begin with ';', uncomment by removing the leading ';')

4. Restart your computer
5. If it still doesnt work, your php file may be using the incorrect syntax
6. If the syntax is valid, I don't know what else you can do

No, I will NOT fix your computer!
Oh, alright then!

I HATE it when things go wrong :@ :@

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\practice\testsql.php on line 17
January 12, 2007 11:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.