Welcome Guest, Not a member yet? Register   Sign In
Question about an array in a query
#6

[eluser]Italo Domingues[/eluser]
Do this, try the code below and see if it still has only one result.

Code:
foreach ($numbers as $key => $value)
{
$this->db->where('postal', $key);
$this->db->orderby('city','asc');
$Q = $this->db->get('us_stores');
if($Q->num_rows()>0)
{
return $Q->result_array();
}


Messages In This Thread
Question about an array in a query - by El Forum - 03-21-2009, 01:55 PM
Question about an array in a query - by El Forum - 03-21-2009, 02:24 PM
Question about an array in a query - by El Forum - 03-21-2009, 03:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:33 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:50 PM
Question about an array in a query - by El Forum - 03-21-2009, 08:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 11:17 PM
Question about an array in a query - by El Forum - 03-22-2009, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB