Hi I have PHP installed on a localhost using IIS7 (Vista Home). I have been googling this problem for hours and I have yet to find a solution that has been effective.
When I try to use a PHP/MySql script, I keep getting this error: Fatal error: Call to undefined function mysql_connect() in ... line ..
global $DB_SERVER,$DB_USER,$DB_PASSWORD,$DB_NAME;
$con=mysql_connect($DB_SERVER,$DB_USER,$DB_PASSWORD) or die("Errore: Non riesco a connettermi al server MySql $DB_SERVER");
mysql_select_db($DB_NAME,$con) or die("Errore: Non riesco a selezionare il database $DB_NAME");
return $con;
}
So far all of my research has led me to understand that my MySql and IIS aren't configured properly.
If someone has solution to this, I would be ecstatic.
One option I was thinking about doing was to use Apache instead of IIS. If I install Apache, I am assuming that I need to shut down IIS first? Would I also have to uninstall PHP too and then reinstall it again?
Thanks,
Mendi