<?
$sql = "select ID from ID order by ID Asc";
$query = mysql_query($sql) or die(mysql_error());
$num = mysql_num_rows($query);
If ($num >0) {
for($i=0;$i<$num;$i++){
$row = mysql_fetch_array($query);?>
<? Print($row['ID']);
}
}
?>
<?
$sql = "select ID from ID order by ID Asc";
$query = mysql_query($sql) or die(mysql_error());
$num = mysql_num_rows($query);
if($num >0) {
for($i=0;$i<$num;$i++){
$row = mysql_fetch_array($query);
$arr[] = $row['ID'];
}
}
?>