
-----------------------------------
Lazarus
Sat May 21, 2005 9:19 pm

help with site.
-----------------------------------
Hey, I need some help with this site, obviously it has to be moved from freewebs to something that will allow PHP and mysql, I really don't know PHP and would like to learn, but not at the moment. Also any good free forums out there?

Right.. What I need help with is that I've made the same layout a good 10 times and I'm getting sick of it, all i want to do is change the text on some pages, which isn't a problem, but say I need to add a link, I need to go to everyone of my pages and change it, it get's annoying. Anyway that PHP can change this? where you only have to change it on the layout, and it will change it all?

-----------------------------------
JackTruong
Sun May 22, 2005 8:43 pm


-----------------------------------
Read up on the include(); function for PHP. Pretty much, what include() does is that is inserts text from the file (parameter passed in include();) and... that's it.

An example would be:


My Test

That would be code to have the title the same.


Body text

That would insert the code above where you have include() and run as normal.

I have bad explanation skills...

---------
Free forums? As in the forum software? phpBB is probably the best free forum out there. I'd stick to my free IPB versions though.

-----------------------------------
Blade
Mon May 23, 2005 12:46 am


-----------------------------------
to elaborate and make it a little more dynamic...

he is right, use include(); ... but what hes trying to say is what it does is include another file into your php page. you dont really need mysql for something like this. also, since you're using your layout as your main page, you're already using html and body tags, so they're a little redundant.

like he said

this is your page





Title


blah blah
blah
