Example #1
0
 /**
  * Used to get the message of the last error that happened
  *
  * @static should only be called statically, i.e. AutoCRUD_Error::get_last_errmsg();
  * @param integer $count the index number of the error code
  * @return string the error message
  */
 function get_last_errmsg($which = 1)
 {
     $last_error =& AutoCRUD_Error::get_last_error();
     if (!is_object($last_error)) {
         return false;
     }
     $errmsg = $last_error->getMessage($which);
     return $errmsg;
 }