I'm getting the following error/warning when trying to do a simple query:
Warning: Illegal offset type in /usr/lib/php/DB/mysqli.php on line 238
My code is simply this:
include_once("DB.php");
$dsn = array(
'phptype' => "mysqli",
'username' => "steve_kevin",
'password' => "*******",
'hostspec' => "localhost",
'database' => "steve_cheese",
);
$db =& DB::connect($dsn);
if (PEAR::isError($db)) {
die($db->getMessage());
}
$res = $db->query("select distinct selector from style");
How can I stop this?
Many Thanks