Posted by "Larry E. Ullman" on 10/23/05 21:53
> I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am
> working in web design. I am unable to connect to the mysql server.
> Althought my php files running fine and my mysql server is also
> running fine.
>
> i) i had changed the php.ini-dist file to php.ini.
> ii)i uncommented the extensions of php_mysql.dll in php.ini file
> iii)i set the extensions_dir to extension_dir = "D:\PHP\php-5.0.3
> \ext\" in php.ini file
> iv)i had copied the libmysql.dll in windows\system32 and windows
> \system
> but after all these i am still getting the error Fatal error: Call
> to undefined function mysql_connect() in D:\PHP\teknohub\new.php on
> line 14 please help me to solve this problem out.
You haven't successfully enabled MySQL support. You can confirm this
by running a phpinfo() script. Did you restart Apache after editing
the php.ini file? And are you certain you are editing the _right_
php.ini file (the one indicated when you run phpinfo())?
Larry
[Back to original message]
|