Hi
The server on which I have a site crashed and the guy who takes care of that stuff seems to have put sqlite on the new server :
PDO support enabled
PDO drivers sqlite, sqlite2
which throws up a "could not find driver" error when i try to connect using the existing connection class:
/*** mysql hostname ***/
$hostname = 'localhost';
/*** mysql username ***/
$username = 'xxxxxx';
/*** mysql password ***/
$password = 'xxxxxxx';
try {
$conn = new PDO("mysql:host=$hostname;dbname=xxxxxx", $username, $password);
// force connection encoding to uft8
$conn->exec('SET CHARACTER SET utf8');
/*** echo a message saying we have connected ***/
echo('Connected to database');
}
catch(PDOException $e)
{
echo($e->getMessage());
}
so I guess I need to change something here
any ideas how I can do this ?
thanks