Jump to content

why a "1" appears at bottom of my page?? have a few recorserts in page...


Recommended Posts

Hello, all:

 

Not sure why it's doing this.. I have several recordsets in my page, and all seems to work fine, but when I run my page, a number "1" appears around bittom of page, where there's some code being run. It just appears nested within the table tag... could it be cause it's showing me a output-overflow? or some kind of result where one of my recordsets may not be properly being echoed??

 

Thanks in advance!

OK, here's code that seems to be kicking-out the "1"; this is setup as an include file, and when I make it to appear in page, then the 1 appears. If I make it so it doesnt get included, then "1" disappears.

 

     

   <table width="40%" height="49" border="0" cellpadding="0" cellspacing="0">
<tr>
              <td align="center" valign="top"><img src="

	<?php  echo $row_worksRS['pict']; ?>" name="" border="0" /></td>
            </tr>
            <tr>
              <td valign="top"><p align="center"><strong>Item# <?php echo $row_worksRS['ProductID']; ?><br />
            <?php echo nl2br($row_worksRS['Description']); ?></strong><br />
                        <br />
                        <strong>PRICE:</strong> <span class="style3"><?php echo $row_offersRS['offer_price']; ?></span><br />
                        <strong>SHIPPING:</strong> <span class="style1">$<?php echo $row_worksRS['Shipping']; ?></span><br />
                        <span class="registrationMark">
                        <?php if($row_worksRS['Quantity'] == "0") {echo "<span class='accentHeading'>SOLD!</span>";}  else {echo " <form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
                <div align='center'>


                  <input type='hidden' name='cmd' value='_xclick' />
                  <input type='hidden' name='business' value='bizname' />
                  <input type='hidden' name='item_name' value='"; echo $row_worksRS['Description']; echo "' />
			  <input type='hidden' name='item_number' value='"; echo $row_worksRS['ProductID']; echo "' />
			  <input type='hidden' name='amount' value='"; echo $row_offersRS['offer_price']; echo "' />
			  <input type='hidden' name='shipping' value='"; echo $row_worksRS['Shipping']; echo "' />
			  <input type='hidden' name='return' value='completed.php' />
                  <input type='hidden' name='cancel_return' value='com/cancelled.php' />
                  <input type='hidden' name='no_note' value='1' />
                  <input type='hidden' name='currency_code' value='USD' />
                  <input type='hidden' name='bn' value='PP-BuyNowBF' />
                  <span class='style21 style9 style10'><strong> <br />
                  <input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but23.gif' border='0' name='submit' />
                  </strong></span><br />
                </div>
              </form>"; } ?>
                        <?php echo nl2br(htmlentities ($row_worksRS['Description2'])); ?><br />
                        <br />
                    </span> </p></td>
            </tr>
          </table>

 

 

 

 

 

AND here is page-source of where the "1" appears. If you notice, it appears rigth at the closing </table> tag of the area in question...

 


  <div id="contentColumnDetails">    
    <h1 align="center" class="detailsHeading"> </h1>
    <h1 align="center" class="detailsHeading"><span class="style444"><br />
      YOUR OFFER HAS BEEN ACCEPTED!</span><br />

      <strong><br />
      Special Bid Price for:</strong> email<br />
      <br />
    </h1>
    <table width="100%" height="204" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="775" height="204" align="center" valign="top">

        
        
        
        
        
                <table width="40%" height="49" border="0" cellpadding="0" cellspacing="0">
<tr>
              <td align="center" valign="top"><img src="

	imagesArt/sml_550135135.jpg" name="" border="0" /></td>
            </tr>
            <tr>
              <td valign="top"><p align="center"><strong>Item# 570<br />
            AUTHENTIC COACH WRISTLET NEW WITHOUT TAGS</strong><br />
                        <br />

                        <strong>PRICE:</strong> <span class="style3">20.00</span><br />
                        <strong>SHIPPING:</strong> <span class="style1">$4.00</span><br />
                        <span class="registrationMark">
                         <form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
                <div align='center'>

                  <input type='hidden' name='cmd' value='_xclick' />
                  <input type='hidden' name='business' value='bizname' />
                  <input type='hidden' name='item_name' value='AUTHENTIC COACH WRISTLET NEW WITHOUT TAGS' />
			  <input type='hidden' name='item_number' value='570' />
			  <input type='hidden' name='amount' value='20.00' />
			  <input type='hidden' name='shipping' value='4.00' />
			  <input type='hidden' name='return' value='completed.php' />
                  <input type='hidden' name='cancel_return' value='cancelled.php' />

                  <input type='hidden' name='no_note' value='1' />
                  <input type='hidden' name='currency_code' value='USD' />
                  <input type='hidden' name='bn' value='PP-BuyNowBF' />
                  <span class='style21 style9 style10'><strong> <br />
                  <input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but23.gif' border='0' name='submit' />
                  </strong></span><br />
                </div>
              </form>                        Coach wool wristlet complete with hanging Coach fab. New without tag. 7 ¾ inches wide x 4 inches in height.<br />

                        <br />
                    </span> </p></td>
            </tr>
          </table>1        
        
        </td></tr></table>
  </div>

looks like there might be other code that generates this...

 

you posted this for your code..


                <table width="40%" height="49" border="0" cellpadding="0" cellspacing="0">
<tr>
              <td align="center" valign="top"><img src="

	imagesArt/sml_550135135.jpg" name="" border="0" /></td>
            </tr>
            <tr>
              <td valign="top"><p align="center"><strong>Item# 570<br />
            AUTHENTIC COACH WRISTLET NEW WITHOUT TAGS</strong><br />
                        <br />

                        <strong>PRICE:</strong> <span class="style3">20.00</span><br />
                        <strong>SHIPPING:</strong> <span class="style1">$4.00</span><br />
                        <span class="registrationMark">
                         <form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
                <div align='center'>

                  <input type='hidden' name='cmd' value='_xclick' />
                  <input type='hidden' name='business' value='bizname' />
                  <input type='hidden' name='item_name' value='AUTHENTIC COACH WRISTLET NEW WITHOUT TAGS' />
			  <input type='hidden' name='item_number' value='570' />
			  <input type='hidden' name='amount' value='20.00' />
			  <input type='hidden' name='shipping' value='4.00' />
			  <input type='hidden' name='return' value='completed.php' />
                  <input type='hidden' name='cancel_return' value='cancelled.php' />

                  <input type='hidden' name='no_note' value='1' />
                  <input type='hidden' name='currency_code' value='USD' />
                  <input type='hidden' name='bn' value='PP-BuyNowBF' />
                  <span class='style21 style9 style10'><strong> <br />
                  <input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but23.gif' border='0' name='submit' />
                  </strong></span><br />
                </div>
              </form>                        Coach wool wristlet complete with hanging Coach fab. New without tag. 7 ¾ inches wide x 4 inches in height.<br />

                        <br />
                    </span> </p></td>
            </tr>
          </table>

 

but your source has more html generated than the code you posted...leading me to believe that the code in question is wrapped in some other code...either by includes...or directly....is there any more code associated with the page in question ?

 

yeah, but thing is, is a ton of code, with a bunch of recordsets that I think I really dont need.. I think it'll be best to go ahead and clean up my page of all uncecessary junk first, and then if I still have the issue, I'll come back here... there must be some code I must have left "opened" or who knows what...

 

wish me luck!

 

thanks!

There's a 99.9% chance that your code is echoing the include, thereby echoing a TRUE value of 1 because the include worked and its' return value is a TRUE in that case.

 

An include statement inserts the included code and causes any output that it produces to be sent to the browser. You don't use echo with an include statement.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.