I am a newbie, and I have just learned some knowledges about php
Today I tried using some command to work with database MySQL
In editor of phpdesigner, I typed this code:
<?php
phpinfo();
// Create connection
$db = mysqli_connect("localhost", "booksdb", "TABLEname") or die(mysqli_connect_error());
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
but when Ctrl + F9 to compile, It show error: Fatal error: Call undefined function mysqli_connect()
I saw some questions same me asked on stackoverlow, some ones said the reason is extension mysql has't been enabled yet. But I don't know how to to that ? ( I also setuped Xampp and Vertrigo )
So I need a suggestion from other members
Thanks for reading