- Messages
- 5,508
- Reaction score
- 35
- Points
- 48
I want to do this:
I have one file, gadgets.php. When you go to gadgets.php?id=1, it shows a bit of HTML. gadget.php?id=2 shows another bit of HTML.
It will take the HTML from a table in the database. The table has 2 rows, gcode, that holds the code and id that holds the id.
Now gadgets.php?id=1 will show the code with the ID 1 in the database.
An example on how to do it with files:
http://forums.x10hosting.com/tutorials/49484-tutorial-php-switching-content-including-pages.html
But I want it done by SQL.
Like think of how a forum works. The style is stored in files but the post is stored in the database. I want it that way
I have one file, gadgets.php. When you go to gadgets.php?id=1, it shows a bit of HTML. gadget.php?id=2 shows another bit of HTML.
It will take the HTML from a table in the database. The table has 2 rows, gcode, that holds the code and id that holds the id.
Now gadgets.php?id=1 will show the code with the ID 1 in the database.
An example on how to do it with files:
http://forums.x10hosting.com/tutorials/49484-tutorial-php-switching-content-including-pages.html
But I want it done by SQL.
Like think of how a forum works. The style is stored in files but the post is stored in the database. I want it that way