Thread: WEB DESIGN HEP
View Single Post
  #2  
MetalMilitia MetalMilitia is offline
Hitler's Canoe!
MetalMilitia's Avatar
Join Date: Sep 2004
Location: UK
MetalMilitia is probably a spambot
Old Dec 18th, 2006, 11:20 PM       
You'd probably be better off positioning all your elements with CSS and storing all the data in a mySQL database. It's much eaiser than it sounds and it allows you to create pages far more efficently.

With that in mind but still using a HTML table in the way you described you could just grab the review from the database a bit at a time inserting it into the relevant boxes.

I've only ever done a small amount of PHP so you may need to wait for someone like Chimp to give a better example but you could have a table which looks like this:

[include GetArticlePart1.php;] [include getImage1.php;]
[include GetArticlePart2.php;] [include GetArticlePart3.php;]
etc...

When each of these .php files are called they will perform a database query and echo the results (with formatting tags).

Even better than that you could just statically position the pictures with CSS and use a single content box for all the text. The text should automotically wrap around the pictures.

I'm sure there IS a way of doing it with standard .txt includes but it'll make much more work for you in the long run.
__________________
Quote:
Originally Posted by bigtimecow View Post
japan
Reply With Quote