Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

$this->db->get_where only returns 1 row

$
0
0
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)); 

Where $alpha is 'A'.

But it only returns 1 record. I don't get any other errors.

I used $this->db->last_query() to display the SQL

Code:
SELECT * FROM `Person` WHERE `Name_Alpha` = 'A'

That should return all rows. 

I'm at a loss.

.png   getwhere.png (Size: 12.03 KB / Downloads: 9)

Viewing all articles
Browse latest Browse all 14114


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>