Click to See Complete Forum and Search --> : Accessing my sql database through php


mansoorbabu
05-12-2008, 04:29 AM
Hi there

I installed the php5 and mysql in the system successfully. Both are working indepenedently., But when I m trying to access the the mysql data from the table I made through php, I cannot showing the data in the browser., I dont know how. The webserver I m using IIS 5 and not connected to internet. How I ll connect to the mysql database through php coding.

I am using

windows xp
IIS 5
PHP 5

both are working indepenedently, but not working when accessing database through php coding


Plz help me ., I m new to php

bradgrafelman
05-13-2008, 08:49 PM
Which PHP extension are you trying to use? The most common options are mysql, mysqli, or pdo.

mansoorbabu
05-14-2008, 05:10 AM
I was the problem of mysqli., Copied file “libmysql.dll” from C:\PHP to C:\WINDOWS\SYSTEM32 folder.

made changes in php.ini:

extension_dir = "c:\php\ext".
extension=php_mysql.dll
extension=php_mysqli.dll

Now its working properly :)

bradgrafelman
05-14-2008, 06:27 AM
Note that you should never copy PHP-related files (such as libmysql.dll) outside of the main PHP folder.

Instead, the "solution" would have been to add the PHP directory to your system's PATH environment variable (as instructed per the manual).

mansoorbabu
05-14-2008, 09:26 AM
ok., thank u for your valuable information., I dont know deep about the programming side., just I started to learn because of much interest., My only way to learn all these things is like you people....many thanks...also if you can give me your personal id please give me..if its yahoo id I can add in yahoo messenger plz..