Rows and cells and rows and cells...
Why isn't this working?? Specifically, why are no rows and cells being printed? All I get is the stuff before and after this segment of code.
code:
foreach $i (@images) { if ($i == 0) { print "<tr>\n"; } elsif ($i > 0) { print "<td>something here</td>\n"; } else { print "<td> </td>\n"; } $i+=1; if ($i == 5) { print "</tr>\n"; $i = 0; } } [/code] Any suggestions would be welcomed! ------------------ Zero Cattle Suzanne Tables DeMystified
Rob Pengelly posted this at 22:46 — 2nd April 2000.
They have: 850 posts
Joined: Jul 1999
Make sure you have
print "Content-type:text/html\n\n";
------------------
L34RN |-|0\/\/ T0 5P34K L33T JU5T L1K3 4N 40L |-|4X0R
http://www.wiredstart.com : The Technology Start Page
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Suzanne posted this at 23:02 — 2nd April 2000.
She has: 5,507 posts
Joined: Feb 2000
Yes, I do have that...
It is printing the other bits --
japhy posted this at 12:17 — 3rd April 2000.
They have: 161 posts
Joined: Dec 1999
Your problem is that
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.