$message\n"; } else { echo "Ошибка Базы Данных. Системный администратор был уведомлен, и эта проблема будет решена в кратчайшие сроки. Приносим свои извинения за неудобства."; $this->_mymail($to,$subject,$message,$from); } } function _reset_properties() { $this->SERVER_NAME = ""; $this->PHP_SELF = ""; $this->db_email = ""; $this->db_host = ""; $this->db_user = ""; $this->db_pass = ""; $this->db_name = ""; $this->db_debug = ""; $this->link_id = ""; $this->result = ""; $this->select_db_name = ""; } function _mymail($to,$subject,$message,$from,$xheaders="") { $eMailerObj = new EMailer($to, $subject, $message, $from); if ($xheaders) $eMailerObj->setExtraHeaders($xheaders); return $eMailerObj->send(); } function getMaxValue($table,$field) { $sql = "SELECT MAX($field) as max_value FROM $table"; $r = $this->query($sql); $max_value_arr = mysql_fetch_assoc($r); if ($max_value_arr) return $max_value_arr["max_value"]; else return false; } } ?>
-
Notifications
You must be signed in to change notification settings - Fork 0
Класс для работы с Mysql
License
alexcomns/Mysql
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Класс для работы с Mysql
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published