关于四级连动

有人写过四级连动的代码吗,怎么能把刚从数据库里的提出来的数据放到数组里面呀,有人告诉我这样写<?
  $sql='select * from table_name';
  $re=mysql_query($connection,$sql)or die("Could not connect: " . mysql_error());
  $count=0;
  while($row=mysql_fetch_array($re)){
         
?>
arrdata[<?$count?>]=new array("<?=$row['ID']?>","<?=$row['KH_NAME']?>","<?=$row['KHF']?>","<?=$row['SYS_TIME']?>","<?=$row['LOGIN_USER_ID']?>");
<?

$count++;
  } ?>
我感觉不对,帮忙解决下
只有拼搏,努力和进取,自己的未来才会更美好