Link to home
Start Free TrialLog in
Avatar of mon1
mon1

asked on

Show evrything in a single table

Hi
I am reading a dbf file through perl and i want to  show all records in  a single table....
for this my cgi is like this...
while(!$database->eof)
{
print <<endresult;
<TABLE BORDER WIDTH="100%"><TR>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[11] </FONT></FONT></TD>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[5] </FONT></FONT></TD>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[3] </FONT></FONT></TD>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[15] </FONT></FONT></TD>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[17] </FONT></FONT></TD>
<TD><B><FONT COLOR="#000099"><FONT SIZE=-1>$fields[18] </FONT></FONT></TD>
</TR></TABLE>
endresult
$database->go_next;
@fields = $database->get_record;
}
 
In this idea each record is showing in  each table.
one table per one record.
but i want to show all records in one table.. what changes i have to make....
i am new to this cgi...
 
ASKER CERTIFIED SOLUTION
Avatar of guadalupe
guadalupe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mon1
mon1

ASKER

Hi friend ..
   absolutely corcet answer.
thanksx fora lot..