I'm trying to run php scripts on Kubuntu 10.04 that connect to a MySQL database. These scripts run perfectly on OS X 10.6.6, but when I run them in Kubuntu, I get the following error:
The script...
<?php
$mysql = mysql_connect('127.0.0.1', 'peterv', 'password');
if (mysql_connect_errno()) {
printf("Connect failed: %s\n", mysql_connect_errno());
exit();
} else {
printf("Host information: %s\n", mysql_get_host_information($mysql));
}
?>
The error message:
"Fatal error: Call to undefined function mysql_connect() in..."
I've seen some posts in other boards about Red Hat problems like this, but nothing that can help with Kubuntu. I'd really appreciate a hand with this.
Thanks,
Peter V.
Bookmarks