hi, i've been doing my PHP proj in IIS using dreamweaver in winXP. now i wanna transfer to apache server in my computer. i copied the folder over but when i run the program, there were some database error. "Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\project\Function\opendb.php on line 2":
opendb.php
<?php
$conn = mysql_connect($dbServerName,$dbUserName,$dbPassword);
if (!$conn)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db($dbName);
?>
since i transfer to apache, is the server name still localhost for the mysql_connect?