I have been working with MySQL under PHP 4.3.4 successfully.
I just upgraded to PHP 5.0 and for some reason I cannot interact with MySQL anymore.
Even the following simple code does nothing:
Code: Select all
<?php
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>It seems like there is a configuration problem between PHP and MySQL.
Does anyone have any idea what could be wrong?