#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    Inserting text, images from other files?


    I recently learned how to create and use includes and it is so cool, my head is still exploding!

    I am trying expand on this by using variables to insert the "meat" of pages dynamically, using switch (case select) but I either get the name of the file to show up, or the name of the variable.

    I freely admit that I'm just trying this and that, seeing what works..can anyone point me to a tutorial showing how to do what I am trying to do?

    ...which is: to dynamically load content other than page ID, includes, etc. should I even be expecting case select to handle this kind of thing?

    thank you!

    pcat
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,870
    Rep Power
    6351
    ANY PHP tutorial will show you this. Dynamically creating complex websites is literally the entire purpose of PHP.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo