b:include data='blog' name='all-head-content'/> Installing Apache PHP and MySQL on Window Vista: Fatal error: Call to undefined function mysql_connect()
Your Ad Here
Your Ad Here

Fatal error: Call to undefined function mysql_connect()

After installing Apache PHP MySQL successfully on Vista.
I expected everything to run smoothly. But, it was really
not the case. As I tried to connect to MySQL using PHP code,
I got stuck with the following error:
"Fatal error: Call to undefined function mysql_connect()"

But, finally I cracked the problem. If the same problem
is annoying you, please follow the solution below:

To connect PHP to MySQL "php_mysql.dll" is required.
We need to mention the location "php_mysql.dll" in
"php.ini"(configuration file).

1)Open "php.ini" in some text editor.2) Search for the line
"extension_dir = "./" " and mentionthe path of "ext" folder
in place of "./". For example if youhave installed PHP in
"C:/program Files" then change"extension_dir = "./" " to
"extension_dir = "C:/Program Files/php/ext" ".

3) Search for the line "extension=modulename.extension"
(You will find it in Dynamic Extensions) and change it to
"extension=php_mysql.dll".

Learn to Earn Money Online Visit:
http://online-income-sources.blogspot.com

Your Ad Here