I want to be able to do something like this:
function x(){
....blablabla..
return mysql_fetch_object($result);
}
$entries = x();
foreach($entries as $entry){
echo "$entry->member_1";
}
when i did this, it gave me 0 result and printed nothing on the screen. I have seen the while-loop solutions too many times already, I want to know if there is a way to do this using for loop? thx
You either want:
Or:
I suspect the first.