global variables not working
Posted: Fri Jul 25, 2008 10:04 pm
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I have downloaded the new version of guestbook becuase i am using XHTML strict in my website and the <img> and <br> didn't have the trailing backslash / in the 1.5 version
Since upgrading to the new version, i can't echo out any global variables. In the footer i want to use some php like connecting to the database and this worked fine in the 1.5 version but not this version
In the gbook.php i created a global variable called $test and i gave it a value. In the function that prints out the start of the html, i made the same variable global in there too (that's what i did when it worked with the old version) but when i echo out the variable in the footer.txt, i get nothing being echoed.
Is there a way to change the footer.txt to footer.php or is that not needed? or why isn't my test variable being echoed?
Without it being able to use global variables, i can't do database connections in my footer
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I have downloaded the new version of guestbook becuase i am using XHTML strict in my website and the <img> and <br> didn't have the trailing backslash / in the 1.5 version
Since upgrading to the new version, i can't echo out any global variables. In the footer i want to use some php like connecting to the database and this worked fine in the 1.5 version but not this version
In the gbook.php i created a global variable called $test and i gave it a value. In the function that prints out the start of the html, i made the same variable global in there too (that's what i did when it worked with the old version) but when i echo out the variable in the footer.txt, i get nothing being echoed.
Is there a way to change the footer.txt to footer.php or is that not needed? or why isn't my test variable being echoed?
Without it being able to use global variables, i can't do database connections in my footer