ok.. please help me
I bought this book to help me build a cms for my web site. its ment for php5 and mysql 5. turns out that the web provider i use only has mysql 4.0.20.
and i have this code that is suposed to connect me to my database but it gives me an error saying: "Fatal error: Class 'mysqli' not found in /db_fns.php5 on line 5"
the code on line 5 and beyond is: "function db_connect()
{
$handle = new mysqli(localhost, 'username, 'password', 'db_name');
if (!$handle)
{
return false;
}
return $handle;
}"
obviously i changed the login info for this post for security reasons. but does anyone have any clue why this wont work? i am a newbee and would appreciate how i can make this work
thank you in advance