prova così:

Codice PHP:
while($row=mysql_fetch_array($result)){

echo 
"id: ".$row['id'];