Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 04-08-2003, 04:40 AM php help
Novice Talker

Posts: 9
Trades: 0
I wanted to ask if anyone can teach me how to do the php function, where you make a main page (layout) and then when you click a link it automatically inserts the content from another page into the main page. (kinda like ssi) The urls for sites that do this usually looks like this:

http://www.domain.com/main.php?id=content

where main is the main page and content is the page its supposed to insert into the main page
Slipknot CPD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-08-2003, 05:05 AM
fonzerelli_79's Avatar
Webmaster Talker

Latest Blog Post:
11 Free Twitter Clients
Posts: 731
Location: Sunny Scotland
Trades: 0
go to www.sietpoint.com
they let you download the first 6 chapters or so of their php book
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
fonzerelli_79 is offline
Reply With Quote
View Public Profile
 
Old 04-08-2003, 07:43 AM
Novice Talker

Posts: 9
Trades: 0
lol, will reading those six chapters really teach me how to do this? (thanks for the tip though) it seems to cover only basic things, what i need is a tutorial for this (which i cant find)
__________________

Please login or register to view this content. Registration is FREE
Slipknot CPD is offline
Reply With Quote
View Public Profile
 
Old 04-08-2003, 06:57 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
You can choose from two ways to do this:

1. Have a template that loads another file. Then your code would load (for example) content.txt, and put it into the template. I've got the code for this if you are interested.

2. Have a database that stores the data to be put into the template. This is slightly more complicated to code but far more flexible.
http://www.freewebmasterhelp.com/tutorials/php/ (if you don't know PHP)
and
http://www.freewebmasterhelp.com/tutorials/phpmysql/
will tell you everything you need to know to do this (and a lot more!)

Let me know if you need any more help with this.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47240 seconds with 12 queries