Before
$query= $this->db->get('users');
After
return $query= $this->db->get('users');
2:58 AM
Unknown
CODEIGNITER
Related Posts:
How to create one variable from foreach in phpSOLUTION WITH AN EXAMPLE: // get doc_typs $i=0; $j=''; foreach ($types->result() as $row) { $j.="WHEN d.doc_type = '".$row->type."' THEN ".$i++.' '; } $when=$j;// end get type… Read More
Select bettwen in Where condition in mysql In my MySQL to select between data Example: SELECT id, current_role_in_khmerFROM currentroleWHERE id NOT BETWEEN 11 AND 14AND id NOT BETWEEN 18 AND 19AND `status`=1 in codeigniter &… Read More
How to upload pdf more than 4M Open file php.ini and change upload_max_filesize = 2M to upload_max_filesize = 64M and add code more below itmemory_limit = 96M post_max_size = 64M … Read More
mcrypt_get_iv_size Error$config['sess_encrypt_cookie'] = TRUE; change to $config['sess_encrypt_cookie'] = FALSE; … Read More
Fatal error: Call to a member function num_rows() on null in C:\xampp\htdocs\ci\application\views\users\view_all_users.php on line 1Before $query= $this->db->get('users'); After return $query= $this->db->get('users');… Read More