I have this code
- Code: Select all
try{
$connection = new PDO("mysql:host=localhost;dbname=myDB","root","");
} catch(PDOException $error){
echo $error->getMessage();
}
It show an error message : could not find driver!
I installed XAMPP ver 1.7.3 with default installation running on windows 7
i have checked phpinfo(), it shows mysql driver enabled
i have also checked in php.ini file for mysql pdo, and it's fine.
Please help me