PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 30th, 2004, 05:30 PM
EJViper EJViper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Caracas, Venezuela
Posts: 17 EJViper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to EJViper
Question Need Advice in a PHP issue

Ok Php PROs. Got a big one here (Big one according to me).

I got a website www.ejviper.com Its made in php.

I want to split the Page in 5 Zones and those zones into few areas. But I only want to have 5 pages and not a page for each single one of them.

My plan is to do this:

Zone #1 = index.php
--> news

Zone #2 = web.php
--> web
--> clients

Zone #3 = art.php
--> art
--> concept
--> nippon
--> vehicles
--> life drawing

Zone #4 = personal.php
--> personal

Zone #5 = contact.php
--> Contact

as you see i want to have the conent of the sub-zones (areas) in the same .php document i dont want it to show up all at the same time. I want them to show in different pages when you clic on the link to go to any them. But the main issue remain. How to do it without having to create 1 documente .php for each area i want to add?

--
I thought that If if i could divide the page in different parts and then it'll show the park I want only if i clic on the right "link". But how is my question.

Thank you All For Reading.
And even more thanks to those who answer.

---
Eduardo Ceballos.
EJViper.com

Reply With Quote
  #2  
Old May 1st, 2004, 05:05 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
"Why" is my question. Seems like a weird way to do things. If you insist on it, you could put each bit of content in a div and write some js to manage (show and hide) the appropriate content div when you click the links. That'd be a js question rather than a PHP question, though.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old May 1st, 2004, 03:51 PM
EJViper EJViper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Caracas, Venezuela
Posts: 17 EJViper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to EJViper
Smile

Quote:
Originally Posted by dhouston
"Why" is my question. Seems like a weird way to do things. If you insist on it, you could put each bit of content in a div and write some js to manage (show and hide) the appropriate content div when you click the links. That'd be a js question rather than a PHP question, though.


Well if theres no way with Php. Then its ok. Well I understood what you ment though, and thanks but Its a personal goal not to use anything but .swf, .php & .css.

Thank ya.

My goal is also to have the least ammount of Documents, no matter how much their size are.

Thats why i got Template.php , Content.php(mysql, vars, functions, etc.), and the 5 zone pages :P.

Well thanks anyway.

-- Eduardo Ceballos
EJViper

Reply With Quote
  #4  
Old May 3rd, 2004, 04:46 AM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
it is not impossible. But rather extensive and unesesary work. What you should do, is something like each zone has an id, and everything has its ovn id. And each time, the page is loaded, the different ids are collected at the start of the page, and the displayd in if(){} sentences. All over the page.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Need Advice in a PHP issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway