Fatal error: Maximum function nesting level of '100' reached, aborting! in ...\project\db.php on line 2
My db.php code
$db = mysql_connect ("localhost","db_user","password");
mysql_select_db("db_name",$db);
What's wrong?
Fatal error: Maximum function nesting level of '100' reached, aborting! in ...\project\db.php on line 2
My db.php code
$db = mysql_connect ("localhost","db_user","password");
mysql_select_db("db_name",$db);
What's wrong?
Go into your php.ini configuration file and change the following line:
xdebug.max_nesting_level=100
to something like:
xdebug.max_nesting_level=200
mysql_connect will return a boolean therefor :
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db("databaseName");
?>