mac007 Posted April 26, 2009 Share Posted April 26, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/ Share on other sites More sharing options...
wildteen88 Posted April 26, 2009 Share Posted April 26, 2009 You'll need to post your code here in order for us to identify your problem. Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819725 Share on other sites More sharing options...
PFMaBiSmAd Posted April 26, 2009 Share Posted April 26, 2009 And post enough of the "view source" of the page in the browser so that someone can find the corresponding place in the code the 1 is being produced. Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819729 Share on other sites More sharing options...
mac007 Posted April 26, 2009 Author Share Posted April 26, 2009 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> Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819743 Share on other sites More sharing options...
DarkSuperHero Posted April 26, 2009 Share Posted April 26, 2009 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819766 Share on other sites More sharing options...
mac007 Posted April 26, 2009 Author Share Posted April 26, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819771 Share on other sites More sharing options...
PFMaBiSmAd Posted April 26, 2009 Share Posted April 26, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/155735-why-a-1-appears-at-bottom-of-my-page-have-a-few-recorserts-in-page/#findComment-819812 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.