this is my code…
[php]<?php
$tmp_space=‘Billboard’;
$rr=0;
$querys=mysql_query(“SELECT * FROM slotmaintenance WHERE fldspace=’$tmp_space’ GROUP BY fldcode ORDER BY fldname”,$conn);
while($data=mysql_fetch_array($querys))
{
$myfldcode=$data[‘fldcode’];
$myfldspace=$data[‘fldspace’];
$myfldposition=$data[‘fldposition’];
$myfldname=$data[‘fldname’];
$myfldsize=$data[‘fldsize’];
$myfldstatus=$data[‘fldstatus’];
$myfldcontract=$data[‘fldcontract’];
$myfldsupplier=$data[‘fldsupplier’];
$myfldinstalled=$data[‘fldinstalled’];
$myndex=$data[‘ndex’];
$mytbltitle.=’
‘.$mycount.’ Slot(s) | ‘.$myfldname.’ | |||
---|---|---|---|---|
Pos | ‘.$tmp_space.’ | Remarks | Date Installed | Size |
‘.$myfldposition.’ | ‘.$myfldsupplier.’ | ‘.$myfldstatus.’ | ‘.$myfldinstalled.’ | ‘.$myfldsize.’ |
';
$mycount=$mycount + 1;
}
echo $mytbltitle;
?>
[/php]
here is the result
in my database
now this is what i want