View Full Version : retrieving a var from a webpage within include file

08-19-2007, 01:37 AM
I have an easy question for you professionals. If i have a webpage called webpage.php and inside this page i define a variable such as category = 'somename';

within this page i my left column of the webpage as an include file. Can i read the value of "category" inside this include file at runtime?

My goal is to have each page listed under what content category it displays, under my columns i want to retrieve specific content based on the category set on the page with MySQL. I image this is possible. Am i correct?

08-19-2007, 01:55 AM
Yes, you can.

08-19-2007, 02:02 AM
Try it and find out