Running Apache with PHP and mysql5 on a mac (snow leopard)...
Apache is running
PHP is running ( works fine)
mysql is running (can connect)
however, the following code is throwing an error
$link = mysql_connect('127.0.0.1', 'user', '****');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
Getting the following error:
Fatal error: Call to undefined function mysql_connect() in /opt/local/apache2/htdocs/ajax_login.php on line 4
phpinfo(). - Jason McCreary