Forum Moderators: coopster & phranque

Message Too Old, No Replies

having trouble displaying table correctly

perl shopping cart script

         

MaryNovack

4:30 am on Apr 19, 2004 (gmt 0)



Hi,

I am using a shopping cart script and am having trouble changing the way my information is displayed in a table. I would like my information fields to be displayed in two columns, one field (and field name) in each column. At the moment the field name shows up in one column and the field shows up in the other column.

I'm pretty sure the following code is what I need to modify. Can you take a look and see if you can pinpoint what needs to be changed? Thanks!

Here's the code snippet:

#########
######### Print the contents of the cell.
#########

print <<ENDOFTEXT;
<TD VALIGN="TOP" WIDTH="50\%"><FONT FACE="$html_small_font_face" SIZE="$html_small_font_size"
COLOR="$html_small_font_color"><B>$optionprod_name$notnull_string</B></FONT></TD>
<TD VALIGN="TOP" WIDTH="50\%">
ENDOFTEXT

&ste_prod_show_options_disp($optionprod_id,$optionprod_name, $optionprod_display_type,$optionprod_inv,$optionprod_required, $optionprod_descript);

print "</TD>\n";

if ($row_count eq "2") {

$row_count = "1";

} else {

$row_count++;

} ######### End of if statement.

print "</TR>\n";

} ######### End of foreach statement.

[edited by: jatar_k at 4:00 pm (utc) on April 19, 2004]
[edit reason] no personal urls thanks [/edit]

VectorJ

4:19 am on Apr 20, 2004 (gmt 0)

10+ Year Member



This is just a guess based on the code that you posted, but it looks like you aren't starting a new <TR> tag on each iteration of the For loop.