Esempio n. 1
0
 function query($query, $a4ps = null)
 {
     parent::queryBefore($query);
     if (is_array($a4ps)) {
         $query = $this->prepare($query, $a4ps);
     }
     $this->res = mysql_query($query, $this->handle);
     parent::queryAfter($query);
     if (!$this->res) {
         $this->notify('error', "SQL error", "{$query} \n\nLast error:\n" . mysql_error($this->handle));
         die;
     }
     return $this->res;
 }