Looks like a shared module ...
Looking at the configure options on top of the page:
'--with-mysql=shared'
Try to change your code to this using dl("mysql.so").
I'm not sure if it is "mysql" or something else but it should be mysql.
<?php
dl("mysql.so");
$host = "localhost";
$user = "username";
$password = "password";
$db = "database";
$dbconnect = mysql_connect($host,$user,$password);
mysql_select_db($db);
?>
Additionally you can activate mysql support permanently by modifying php.ini. Somewhere in the php.ini there should be the following option that needs to be On:
enable_dl=On
somewhere below should be a section called Dynamic extensions:
Add
extension = mysql.so
and restart apache. MySQL should now be enabled globally.
Thomas