sorry, , the mysql_fetch_array command fetches just 1 row at a time.. (field names become array values), try this..
while ($r=mysql_fetch_array($query))
$temp .= $r("field name u want to send");
if u want to send more field names, try something like this
while...
$temp .= $r['field1'];
$temp .= $r['field2'];
i think this should work.. but im not certain.. i don't work with mysql..