I am trying to connect a MYSQL database in php using XAMP. The code works in Windows but not working in MAC. There is no error coming but just blank screen. Anyone using MAC can help me on this? I think it needs some change in php.ini file, I removed the ; from the extensions for mysql.dll file but did not work.
My Db Connectivity Code is
<?php
error_reporting(0);
session_start();
$con = mysql_connect('localhost','root','');
echo $con."<br />";
mysql_select_db('cfcdb', $con);
echo mysql_error($con);
?>
it does not print the $con and shows nothing.