Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: $this->db->get_where only returns 1 row
Post: RE: $this->db->get_where only returns 1 row

zurtri Wrote: (09-21-2016, 03:56 PM) -- Hmm - that all looks correct. My thoughts are: 1. Maybe there is a control character in one of the rows? In this case try a WHERE `Name_Alpha` LIKE '%A%' qu...
10,542 Views
5 Replies
09-22-2016, 04:10 AM
Ragwin
    Thread: $this->db->get_where only returns 1 row
Post: RE: $this->db->get_where only returns 1 row

zurtri Wrote: (09-21-2016, 03:56 PM) -- Hmm - that all looks correct. My thoughts are: 1. Maybe there is a control character in one of the rows? In this case try a WHERE `Name_Alpha` LIKE '%A%' qu...
10,542 Views
5 Replies
09-22-2016, 02:30 AM
Ragwin
  Sad Thread: $this->db->get_where only returns 1 row
Post: $this->db->get_where only returns 1 row

I have two records in table Person with Name_Alpha set to A (see attachment). In a model file I then have  PHP Code: -- $query = $this->db->get_where('Person', array('Name_Alpha' => $alpha)); -...
10,542 Views
5 Replies
09-21-2016, 02:47 PM
Ragwin
    Thread: $query = $this->db->get('news');
Post: RE: $query = $this->db->get('news');

Wouter60 Wrote: (09-17-2016, 11:52 PM) -- Check your database settings in application\config\database.php One of the elements in de $db['default'] array is 'dbprefix'. Does this have the value 'ad' ...
5,368 Views
2 Replies
09-18-2016, 02:29 AM
Ragwin
    Thread: $query = $this->db->get('news');
Post: $query = $this->db->get('news');

I am working my way through the display News section of the tutorials. My News_model.php is just cut and past from the tutorial: PHP Code: --
5,368 Views
2 Replies
09-17-2016, 10:45 AM
Ragwin

Theme © iAndrew 2016 - Forum software by © MyBB