Выполнив ниже запрос I Получив это сообщение об ошибке < /p>
У вас есть ошибка в вашем синтаксисе SQL; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'status=1' at line 1 SELECT username,useremail FROM tbl_cart where user_id= 8AND status=1
My query code:
$query = $this->db->query('SELECT username,useremail FROM tbl_cart where
user_id= '.$this->session->userdata('userId').'AND status=1' );
$resultdata['results'] = $query->result_array();
Подробнее здесь: https://stackoverflow.com/questions/452 ... ed-with-co
Мобильная версия