function getid(){
$conn = db_connect();
$query = "...";
$fresult = mysql_query($query);
$count = mysql_numrows($fresult);
while($count!=0) {
$num = mysql_fetch_array($fresult);
if($num){
$post['xnum'] = $num['xnum'];
echo "$post[xnum],"; // RESULT = 62,64,65, BUT
}
$count--;
}
$post['xnum'] = $count;
return $post;
}
but in the calling function!?
function calltheotherf(){
$id = getid();
$count = $nums['count'];
for ($i = $count; $i>0; $i--) {
$xnumid = $id['xnum'];
echo " --[what #: $xnumid ] ";
}
}
I get this!
--[what #: 65 ] --[what #: 6 ] --[what #: 6 ]
Anybody would know what the heck is going on?
Appreciate your feedback.