Random Code Drops - Solved

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tchester
Forum Newbie
Posts: 10
Joined: Thu Jun 12, 2008 3:59 pm

Random Code Drops - Solved

Post by tchester »

I have the following code

Code: Select all

 
echo '<table width="600px" border="0" cellspacing="2" cellpadding="2" style="border: 1px solid #666666">';
        
        //create a table row for each book  javascript&#058;history.go(-1)  '.($row['linkpage']).'
        foreach ($product_array as $row)
        {
          echo '<form name="frmDisplayProd" action="/shopping_new/view_cart.php" method="post"><tr> 
                  <td valign="top" width="100px"><a href="'.($row['linkpage']).'"><img src="'.($row['smallimage']).'" border="0"></a></td>
                  <td align="left" valign="middle"><strong><font size="2" face="Arial, Helvetica, sans-serif">
                    <a href="'.($row['linkpage']).'"><font color="#0000FF">'.($row['description']).'</font></a><br>
                    </font></strong><font size="1" face="Arial, Helvetica, sans-serif"> 
                    ('.($row['partnum']).')</font>                               
                              </td>
                  <td align="left" valign="middle" width="65px"><font color=red size="2" face="Arial, Helvetica, sans-serif"><b>$'.($row['price']).'</b></font>
                  <br />
                  <br />
                  <br />
                  <br />
                  <input name="hiddenid" type="hidden" value="'.($row['productid']).'"><input name="qty" type="text" value="1" size="2" align="center"><br><input type="image" src="/shopping/images/Untitled-3.gif" border="0"/>
                  </td>
                  <td width="185" align="left" valign="middle">';
                        $volume_array = get_volumepricing($row['productid']);
                        display_volume($volume_array, $row['price']);
            echo '</td>
                </tr>
                <tr> 
                  <td height="5" colspan="4" align="left" valign="top"><img src="/shopping/images/spacer_products.gif" width="100%" height="1"></td>
                </tr></form>';
        }
        echo '</table>';
 
I'd say 90% of the time the last bit of the code isn't interpreted in Internet Explorer.

Code: Select all

 
echo '</td>
                </tr>
                <tr> 
                  <td height="5" colspan="4" align="left" valign="top"><img src="/shopping/images/spacer_products.gif" width="100%" height="1"></td>
                </tr></form>';
        }
        echo '</table>';
 
Any help as to why would be greatly appreciated.
Last edited by tchester on Fri Feb 06, 2009 10:47 am, edited 1 time in total.
tchester
Forum Newbie
Posts: 10
Joined: Thu Jun 12, 2008 3:59 pm

Re: Random Code Drops

Post by tchester »

This was my problem:

Code: Select all

width="100%"
Post Reply