I have tryed every solution i found around here.. nothing works..
i am using Eclipse and Xampp. Trying to connect MySQL to the PHP script..
when i type phpinfo()
i can see the PDO drivers are there:
printscreen
$dns = "mysql : dbname =DataBase; localhost";
$user = "root";
$password = null;
try {
$conn = new PDO($dns, $user, $password);
} catch (PDOException $e) {
echo 'Erro: ', $e->getMessage();
}
All i get is could not find driver
the needed lines are uncommented on php.ini
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite