Killersites.com Homepage


Print at Mar 20, 2010 2:58:25 PM

Posted by wolfrock at Nov 28, 2006 1:45:47 AM
Recalling variable in a separate .php section?
I've been working with multiple different pages (.php) that all utilize global navigation and footer .php files, since they are essentially the same for every page on the site.

I'm trying to define a simple numeric variable within the content of the main page(s) (basically one variable that might be different from page to page), and then recall/print that variable within the "footer" section (a separate PHP file). This seemed to work OK using the most basic variable commands when I was testing the site on my computer, but after uploading to a server, the basic commands for defining & printing a variable don't seem to be doing the trick.

Any advice is greatly appreciated... just trying to get the numeric variable to print within the footer .php file, even though it was defined elsewhere.

Thanks a lot! cool