$rs=mysql_query("select id from table") or die("error!"); while($row=mysql_fetch_array($rs)){ ?>=row[id]?> }?>