Bir SQL tarafında aşağıdaki hatayı üreten bir fonksiyon ADODB sorgu koyduğunuzda neden merak ediyorum:
Fatal error: Call to a member function Execute() on a non-object in -path to script-
Benim işlevi gibi bir şeydir:
$dsn = 'mysql://user:pass@localhost/db';
$db = ADONewConnection($dsn);
function getem($q){
$r=$db->Execute($q);
return $r->RecordCount();
}
echo getem("select * from table");
Nasıl bunu düzeltmek için herhangi bir fikir?