i have tried lot to connect database using PHP PDO. i have got lot of samples, i am not sure what was problem.
below is my code
<?php
try
{
// $db = new PDO('sqlite:sampleDB.db3');
// $db = new SQLiteDatabase('sampleDB.sqlite', 0666, $error);
$db = new PDO('sqlite:sampleDB.sqlite');
}
catch(PDOException $e)
{
echo $e->getMessage();
}
?>
i have tried lot of way to open a connection. please tell me the correct way...
print_r2(PDO::getAvailableDrivers())