I am trying to spit out all names into an array, but I keep getting just the last object.
for($i=0; $i<count($allLoc); $i++){
//$allLoc is query results
if($allLoc[$i]['storecode']!=$allLoc[$i]['orig_store'] && $allLoc[$i]['storecode']==$currStoreLoc){
$store=array();
array_push($store, $allLoc[$i]['orig_store']);
}
}
My Problem ->$store on outputs 1 store, the particular instance I am testing should have 3, but it is just giving me the very last one.
Any ideas?? Thanks...Kudos!!!
for($i=0; $i<count($allLoc); $i++){
//$allLoc is query results
if($allLoc[$i]['storecode']!=$allLoc[$i]['orig_store'] && $allLoc[$i]['storecode']==$currStoreLoc){
$store=array();
array_push($store, $allLoc[$i]['orig_store']);
}
}
My Problem ->$store on outputs 1 store, the particular instance I am testing should have 3, but it is just giving me the very last one.
Any ideas?? Thanks...Kudos!!!