Okay I'm trying to convert MySQL request to PDO MySQL. I already do that before but I cn't get this one working :
$query = 'SELECT key FROM turl WHERE key = "'.$k.'"';
$req = $db->query($query);
if($req->rowCount() > 0) {
$key = $row['key'];
}
And here are PDO php extentions :
extension=php_pdo.dll
;extension=php_pdo_dblib.dll
;extension=php_pdo_firebird_firebird.dll
;extension=php_pdo_firebird_interbase.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql_mysqlnd.dll
extension=php_pdo_mysql_libmysql.dll
extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pdo_sqlite_external.dll
I post here before ServerFault in case it my PHP code that is wrong.
By the way, here is the error :
Fatal error: Call to a member function rowCount() on a non-object in D:\Entreprises\Site web - Dev\xampp\htdocs\ushot\index.php on line 51