ajax — Как исправить функцию: _error_handler Файл: C: \ xampp \ htdocs \\ index.php Строка: 315 Функция: require_once

***** public function ajax_update () {$ this -> _ validate (); $ data = array (‘CategoryId’ => $ this-> input-> post (‘CategoryName’), ‘BrandName’ => $ this-> input-> post (‘BrandName’),); $ brand = $ this-> brand-> get_by_id ($ this-> input-> post (‘BrandId’)); if (! empty ($ _ FILES [‘Brandlogo’] [‘name’])) {$ upload = $ this -> _ do_upload (); $ data [‘Brandlogo’] = $ upload; если (file_exists ( «Загрузка / бренд /’.$ бренд-> Brandlogo) && $ brand-> Brandlogo) {unlink (‘upload / brand /’.$ brand-> Brandlogo); }} $ this-> brand-> update (массив (‘BrandId’ => $ this-> input-> post (‘BrandId’)), $ data); echo json_encode (array («status» => TRUE)); } публичная функция get_by_id ($ id) {$ this-> db-> select (‘*’) -> from (‘brand’) -> join (‘category’, ‘category.CategoryId = brand.CategoryId’); $ This-> db-> где ( ‘BrandId’, $ ID); $ query = $ this-> db-> get (); return $ query-> row (); }
————————————————— ———————- *****

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector