I did change the way you suggest me by changing the code like this:
ini_set('display_errors', 1); // set to 0 when ready to turn off error displays
error_reporting(E_ALL);
$db = mysql_connect("localhost", "root", "488704");
if($db == false)
{
user_error(mysql_error());
}
mysql_select_db("information");
Once I run the page, I am seeing the following error:
Fatal error: Call to undefined function mysql_connect() in C:\webdocs\PHPandMysql\page239\insert_book.php on line 39