I just installed IIS/PHP/MySQL on windows XP and everything seems to be working fine, except for when I went to connect to MySQL.

I'm getting this error:

Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\el\store_comment.php on line 17

line 17 of conntemp is:

$dbi = mysql_connect($host, $name, $pass)
or die("I cannot connect to the database. Error :" . mysql_error());

can anyone tell me if i'm missing something? like a module maybe?
and if so what one and where can i get it?

thanks in advance for your time!

hey your mysql extension is disabled.
you need to enable it check the php.ini file
and uncomment the mysql section
for php 4.x it is enabled by default
owh..can u explain more about php.ini file. i still blur about that.
is that u mean i must make changes to the file like below??

Change this : ;extension=php_mysql.dll
to : extension=php_mysql.dll
(the semicolon at the start is removed)

i have done that, but i still get the error mesaage...
huh...i already restart the IIS after making the changes.
But still the same error come out..!!what should i do???can anybody help me???
php_mysql.dll file is exist in ext directory.i think something must be change in the php.ini file but i'm not really sure what has to be anybody know about the setting in the php.ini file??
Check your php.ini for extension directory. Defaults to "C:/php/extensions".
Also check php.ini to see if the extension has been loaded up by PHP
Check your logs. It can be also a permission issue.
hmm..i already make changes to the php.ini file, but still can not work....
i've solve the problem by using apache instead of IIS..
so.tq for ur help =)