Dear experts,
I am a newbie and reading a book to use PHP to create new database with follow codes:
<?php
$host="localhost";
$userdb="root";
$passdb="";
$connecting=mysql_connect($host,$userdb,$passdb);
mysql_create_db("administration",$connecting);
echo"Administration database has been created.";
?>
however, when I load it at my localhost, it said:
Fatal error: Call to undefined function mysql_create_db() in C:\xampp\htdocs\admindb.php on line 6
Kindly need your helps..what is wrong with my codes please..??..because I just pasted from the book..Thank you
Regards,
Rasya