Welcome Guest, Not a member yet? Register   Sign In
$this->db->get_where only returns 1 row
#5

(09-21-2016, 03:56 PM)zurtri Wrote: 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%' query and see if you are given different results.
2. In your phpymyadmin (or whatever) run the raw query - what result do you get?

My bad.

When my model was selecting all records it was returning 

PHP Code:
$query->result_array(); 

But when I was selecting specific records it was returning 
PHP Code:
$query->row_array(); 

Typo from me copying from the tutorial.
Reply


Messages In This Thread
RE: $this->db->get_where only returns 1 row - by Ragwin - 09-22-2016, 04:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB