Search the Community
Showing results for tags 'mysgli'.
-
Добрый вечер! Помогите расшифровать ошибку. Никаких работ на сайте не проводил. Сначала возвращал 502 ошибку, а потом вот это: Warning: mysqli::__construct(): (HY000/1135): Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug in /home/a/alexzh/public_html/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/a/alexzh/public_html/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/a/alexzh/public_html/system/library/db/mysqli.php on line 10Fatal error: Uncaught Exception: Error: <br />Error No: in /home/a/alexzh/public_html/system/library/db/mysqli.php:10 Stack trace: #0 /home/a/alexzh/public_html/system/library/db.php(31): DB\MySQLi->__construct('localhost', 'alexzh_main', '2jPwZ6in', 'alexzh_main', '3306') #1 /home/a/alexzh/public_html/system/framework.php(80): DB->__construct('mysqli', 'localhost', 'alexzh_main', '2jPwZ6in', 'alexzh_main', '3306') #2 /home/a/alexzh/public_html/system/startup.php(104): require_once('/home/a/alexzh/...') #3 /home/a/alexzh/public_html/index.php(19): start('catalog') #4 {main} thrown in /home/a/alexzh/public_html/system/library/db/mysqli.php on line 10
-
Доброго времени суток! ПОЖАЛУЙСТА ПОМОГИТЕ РЕШИТЬ ПРОБЛЕМУ ... При оформлении заказа выходит ошибка Notice: Error: Unknown column 'bprice' in 'field list' Error No: 1054 INSERT INTO oc_order_product SET order_id = '18', product_id = '31471', name = '175/65R15 CP661 84H Nexen летняя', model = '31471~01', quantity = '1', price = '12500', total = '12500', bprice = '0', /*suppler*/ tax = '0', reward = '0' in /var/www/vhosts/greentyre.kz/httpdocs/system/library/db/mysqli.php on line 41 и из за нее не видно какой именно товар заказывают видно только стоимость /var/www/vhosts/greentyre.kz/httpdocs/system/library/db/mysqli.php в этом файле написано: <?phpnamespace DB; final class MySQLi { private $link; public function __construct($hostname, $username, $password, $database) { $this->link = new \mysqli($hostname, $username, $password, $database); if ($this->link->connect_error) { trigger_error('Error: Could not make a database link (' . $this->link->connect_errno . ') ' . $this->link->connect_error); exit(); } $this->link->set_charset("utf8"); $this->link->query("SET SQL_MODE = ''"); } public function query($sql) { $query = $this->link->query($sql); if (!$this->link->errno) { if ($query instanceof \mysqli_result) { $data = array(); while ($row = $query->fetch_assoc()) { $data[] = $row; } $result = new \stdClass(); $result->num_rows = $query->num_rows; $result->row = isset($data[0]) ? $data[0] : array(); $result->rows = $data; $query->close(); return $result; } else { return true; } } else { trigger_error('Error: ' . $this->link->error . '<br />Error No: ' . $this->link->errno . '<br />' . $sql); } } public function escape($value) { return $this->link->real_escape_string($value); } public function countAffected() { return $this->link->affected_rows; } public function getLastId() { return $this->link->insert_id; } public function __destruct() { $this->link->close(); } } mysqli.php