<?
$i=1;
$count=4;//set this to change count of items display in a line
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("dzsw1",$con);
$sql = "select * FROM cp_dl";
$result = mysql_query($sql,$con);
while ($r= mysql_fetch_array($result)){
if ($i % $count==1) echo $r[lbmc];
if ($i % $count==0) echo $r[lbmc]."<br>";
$i=$i+1;
}
?>