How do I remove these grey boxes?

Discussion in 'PHP' started by Dcsboards531, Jun 13, 2008.

  1. #1
    [​IMG]


    see those grey boxes in between the "buy now"'s how do I remove those.I want to make it so the "buy now" boxes just stack on top of eachother. They only show up in internet explorer.
     
    Dcsboards531, Jun 13, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Can you please post your code for this section? thank you
     
    crath, Jun 13, 2008 IP
  3. Dcsboards531

    Dcsboards531 Active Member

    Messages:
    169
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    here is the code


    <TABLE border="0" align="center" cellpadding="0" cellspacing="0">
                  <TR> 
                    <TD> <B>Welcome <font color="#CC0000"> 
                      <?=ucwords($online)?>
                      </font> &nbsp;&nbsp; 
                      <?=$last_name?>
                      </B><br> <B>You have $ <FONT  COLOR="blue"> 
                      <?=$user_credit?>
                      </FONT> Paid credits.</B> <p> <FONT SIZE="3" >To buy more credits 
                        press the <B>Buy Now</B> button.</FONT> 
     <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
    <tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img  src="https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->                 
    <p> 
                      <TABLE border=0 cellspacing=1 cellpadding=1>
                        <?php
    
    
    $sql_sel="SELECT * FROM `mybidding_rate`";
    $res_sel=mysql_query($sql_sel)or die(mysql_error());
    while($row=mysql_fetch_array($res_sel))
    {
    ?>
                        <TR> 
                          <TD>$ 
                            <?=$row['pound_rate']?>
                            &nbsp;=&nbsp; 
                            <?=$row['bid_credit']?>
                            &nbsp;Bid Credit&nbsp;&nbsp; 
                            <?php
    
    	$credits=$row['bid_credit'] ;
        $pcredits=$credits+$row['free_credit'];
    	$fcredits=$row['free_credit'];
    	$name=$first_name." ".$last_name;
    	$credits_bid_id=$row['bid_id'];
    
    	if($row['free_credit']!=0)
    	{
    	echo "( +".$row['free_credit'];
    	?>
                            free)&nbsp;&nbsp;</TD>
                          <TD border="0">
                                <?
    $qry="select * from  admin_register  limit 1";
    $re=mysql_query($qry);
    $res_=mysql_fetch_assoc($re);
    $paypal_email=$res_['paypal_email'] ;
    
    
    	?>
     <td bgcolor="F4F3F3">
     <form action="paypal.php"  method="POST">
     <INPUT TYPE="hidden" NAME="business" value="<?=$paypal_email?>">
     <INPUT TYPE="hidden" NAME="item_name" value="bid_credit for <?=$first_name?> (<?=$pcredits?>)">
     <INPUT TYPE="hidden" NAME="credits" value="<?=$pcredits?>">
     <INPUT TYPE="hidden" NAME="id" value="<?=$reg_id?>">
     <INPUT TYPE="hidden" NAME="first_name" value="<?=$first_name?>">
     <INPUT TYPE="hidden" NAME="last_name" value="<?=$last_name?>">
     <INPUT TYPE="hidden" NAME="item_number" value="<?=$credits_bid_id?>">
     <INPUT TYPE="hidden" NAME="amount" value="<?=$row['pound_rate'];?>">
     <INPUT TYPE="hidden" NAME="credits" value="<?=$credits?>">
    <INPUT TYPE="hidden" NAME="fcredits" value="<?=$fcredits?>">
    <INPUT TYPE="hidden" NAME="idt" value="<?=$credits_bid_id?>">
     <INPUT TYPE="submit" Value="Buy Now" name="submit">
     </form>
    </TD>
    <?php
    	}
       else
    	{
    ?>
                     
    <TD>
    <?
    $qry="select * from  admin_register  limit 1";
    $re=mysql_query($qry);
    $res_=mysql_fetch_assoc($re);
    $paypal_email=$res_['paypal_email'] ;
    
    	?>
    <td bgcolor="F4F3F3"> <form action="paypal.php" method="POST">
     <INPUT TYPE="hidden" NAME="business" value="<?=$paypal_email?>">
     <INPUT TYPE="hidden" NAME="item_name" value="bid_credit for <?=$first_name?> (<?=$pcredits?>)">
     <INPUT TYPE="hidden" NAME="credits" value="<?=$pcredits?>">
     <INPUT TYPE="hidden" NAME="id" value="<?=$reg_id?>">
     <INPUT TYPE="hidden" NAME="first_name" value="<?=$first_name?>">
     <INPUT TYPE="hidden" NAME="last_name" value="<?=$last_name?>">
     <INPUT TYPE="hidden" NAME="item_number" value="<?=$credits_bid_id?>">
     <INPUT TYPE="hidden" NAME="amount" value="<?=$row['pound_rate'];?>">
     <INPUT TYPE="hidden" NAME="credits" value="<?=$credits?>">
    <INPUT TYPE="hidden" NAME="fcredits" value="<?=$fcredits?>">
    <INPUT TYPE="hidden" NAME="idt" value="<?=$credits_bid_id?>">
     <INPUT TYPE="submit" Value="Buy Now" name="submit">
     </form></td>
                  <?php
    	}
    }	
    ?>
                  </tr>
            
            <TR> 
              <TD><B>Current bids:</B></TD>
            </TR>
            <?php
       if($num_of_bids==0)
       {
       ?>
            <TR> 
              <TD><B>Total: <FONT  COLOR="blue">0</FONT> bids / $ <FONT COLOR="red"> 
                <?=$user_credit?>
                </FONT> Paid Credits</B></TD>
            </TR>
            <?
       }
    else
    {
    ?>
            <TR> 
              <TD><B>Total: <FONT COLOR="blue"> 
                <?=$num_of_bids?>
                </FONT> bids / $ <FONT  COLOR="red"> 
                <?=$user_credit?>
                </FONT> Paid Credits</B></TD>
            </TR>
            <?
    }	
    ?>
          </TABLE> 
          <br>
        </td>
      </tr></table>
    	
    	      </TABLE> 
          <br>
        </td>
      </tr></table>
    	
    	
    	
    	
    	
        </td>
      </tr>
      <tr> 
        <td colspan="2" align="center" valign="top">
    <?PHP
    include "footer.php";
    ?>
    PHP:
     
    Dcsboards531, Jun 13, 2008 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Change the two occurrences of:

    <td bgcolor="F4F3F3">

    to

    <td bgcolor="#FFFFFF">

    Peace,
     
    Barti1987, Jun 13, 2008 IP
  5. Dcsboards531

    Dcsboards531 Active Member

    Messages:
    169
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    yeah but how do I make it so there isnt a gap between each one???
     
    Dcsboards531, Jun 13, 2008 IP
  6. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #6
    change each

    <form

    to

    <form style="margin:0px"
     
    crath, Jun 13, 2008 IP
  7. Dcsboards531

    Dcsboards531 Active Member

    Messages:
    169
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Ok thanks I just found it
     
    Dcsboards531, Jun 13, 2008 IP