There is something wrong with this foreach.
The last value from $myregions is not picked up but has again the second value 'georgia':

     $myregions = array('florida','georgia','delaware');
     foreach ($myregions as $value) {
        myfunction(array('region'=>$value)) ;
        if(count_items()>1) {

Recommended Answers

All 2 Replies

Member Avatar


Could it be that line?

no that is just to see if there are items from the query.
When I echo $value I get the good results.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.