Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Mysql Array to ready made html tables

Status
Not open for further replies.

hut06

Programmer
Joined
Mar 19, 2007
Messages
3
Location
GB
Hi All,

I have a table in a database, from which I have pulled out all of the data and put it into an array.

Can you tell me how I take that data/array and then print that into an html table that I have made up on a seperate html page.

Thanks in advance for your help.

Ben

 
generic example for a generic question:

Code:
print "<table>\n";
foreach my $line (@array) {
   print " <tr><td>$line</td></tr>\n";
}
print "</table>\n";

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top