Example #1
0
 /**
  * Executes the statement on the database, replacing the
  * placeholders with their respective values. Shows an
  * error and stops the execution if something goes wrong.
  *
  * @param array Placeholders' values.
  *
  * @access public
  */
 public function execute($values = array())
 {
     if (!parent::execute($values)) {
         $err_info = $this->errorInfo();
         Database::showError(Database::ERR_STATEMENT, array('message' => $err_info[2], 'sql_code' => $this->queryString, 'values' => $values));
     }
 }