The hosting site I'm using says, "At the moment, we do not offer MySQLi support..." but they've added it to their list of customer requests for PHP5.
The books I'm using to learn PHP rely heavily on mysqli, with little or no explanation of what's happening, or how to recreate functions without mysqli support.
I'm banging my head against one particular function:
<?php
function db_connect()
{
$result = new mysqli('localhost', 'bm_user', 'password', 'bookmarks');
if (!$result)
throw new Exception('Could not connect to database server');
else
return $result;
}
?>
How does mysqli connect differently than a plain ol' connection, and how can I recreate the function without mysqli? (Is it even possible?)