Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-01-2005, 10:30 PM
MegaMan
Unregistered

Posts: n/a

Navigation

I wondering how I would do this:

website.com/tutorial/12

Basicly, that would bring up the tutorial with the id 12.or:
website.com/news/submit etc.

Thanks in advance :P
Reply With Quote
  #2  
Old 08-14-2005, 01:00 PM
Phil
Unregistered

Posts: n/a

Easier solution.

If I understand what you mean, I do not think that this is the most efficient way of going about your problem. I do have a solution though.

The process you are talking about is as follows:
1. Grab the address bar information (simple enough).
2. Strip it apart, search for the "/" character and grab the folder names that you need.
3. Now, for every subdirectory that you have, you need an index.php or something in there to catch the call.
4. From there, you are probably forwarding to another page, with the ID (foldername).

Solution:
- Cut out steps 1 to 3. This will save file space and a lot of unnecessary time.
- Create your tutorials.php that asks for one variable, id.
- According to what id is, the appropriate tutorial will appear.
- Links will be like: http://www.website.com/tutorials.php?id=34 rather than http://www.website.com/tutorials/34/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump


All times are GMT -5. The time now is 08:00 PM.




Powered by vBulletin®