Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    317
    Thanks
    24
    Thanked 3 Times in 3 Posts

    retrieving a var from a webpage within include file

    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?

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Yes, you can.

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Try it and find out


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •