PDA

View Full Version : Website coding related...


Neo
11-13-2004, 3:31 PM
Halp the Neo please O_o!

I was wondering if it would be possible to use PHP or JS, or some such (preferably PHP) to setup 'blocks'

Like could I split my blocks up (they are tables basically) with the first half in one php file, and the second half in another, and then include them somehow:

include topbox
(content here) -- OMG ITS A BOX (see below)
include bottombox

http://www.kupatrix.com/neo/box.gif <-- This is a box by the way, or block, whatever.

Becuase I was thinking I am prolly going to want add a few more boxes to my site (www.kupatrix.com (http://www.kupatrix.com) for reference) and I would rather not have to add 8 more tables on top of the already table laden site >_<

-Neo

WeekendLazyness
11-13-2004, 3:36 PM
Split it into separate files, boxes1.html, boxes2.html, and main.php. Put the boxes in boxes.html.

Put this line in main.php where you want the boxes to appear.\
<?php require('boxes1.html'); ?>
CONTENT
<?php require('boxes2.html'); ?>

Neo
11-13-2004, 10:48 PM
Idiot is me.

Thanks WL.

-Neo