Forum Moderators: coopster

Message Too Old, No Replies

significance of "1"?

         

jake66

12:55 am on May 6, 2006 (gmt 0)

10+ Year Member



i'm trying to merge phpjunkyard's guestbook script with my current layout... but everytime i insert two include's or require's (for header & footer) into gbook.php..

a "1" appears next to my h1 tags.

if i comment out header, the 1 appears in the footer
if i comment out footer, the 1 appears at the top of the page

if i get rid of both, the 1 is gone.

all other pages use the same header & footer, no other page is experiencing this weird activity..

AndreJul

2:20 am on May 6, 2006 (gmt 0)

10+ Year Member



Can you paste your codings, I want to see, but I don't know if i can help much, but it will be easier for all to give help

jake66

2:34 am on May 6, 2006 (gmt 0)

10+ Year Member



shoot. i just tried to post it, but it was too large.. where can i post this in a text file so anyone can see it that wants to take a peek? (other than my domain, i'm doing the fixes for a friend and i'm not sure if they'd want their url posted as the overall site's incomplete)

dreamcatcher

6:26 am on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, I`ve had this problem before too with some scripts. Its usually an error in the code. Maybe a variable set incorrectly.

dc

jake66

9:06 pm on May 6, 2006 (gmt 0)

10+ Year Member



how can one troubleshoot? the script executes flawlessly with no errors, except for this dangling "1"

eelixduppy

9:16 pm on May 6, 2006 (gmt 0)



try looking at all of the echos in the included files to see where something gets echoed to the screen. Once you find one, look at what it is echoing and determine if that is the source of the 1

eelix

jake66

9:26 pm on May 6, 2006 (gmt 0)

10+ Year Member



i've done all of that and there's only two files (that once removed) stops the 1

but like i said, these two files are used globally thoughout the site and this is only happening on the one page