Beispiel #1
0
 /**
  * Executes a prepared statement
  */
 function execute($params = array())
 {
     $search = array();
     $replace = array();
     foreach ($this->paramBindings as $k => $v) {
         $search[] = '{' . $k . '}';
         $replace[] = $this->castValue($v[0], $v[1]);
     }
     $sql = str_replace($search, $replace, $this->preparedQuery);
     $this->db->logEvent("SQL: {$sql}");
     $this->result = mysql_unbuffered_query($sql, $this->db->conn);
     return (bool) $this->result;
 }