Jump to content

[resolved] PHP Navigation


hashish

Recommended Posts

What's up guys. My first post here, and I'm not great with php, but here's my question:

My current navigation works using the get function, so my links are like "index.php?x=page".

I have about 200 pages, so FTP is getting cluttered. Now what I want to do is make a directory for all the categories of content, and be able to link to the files like ?x=applications&cat=downloads. Assuming I have a directory called downloads and a file named applications.php.

I've seen this code somewhere before. Is this a simple form of breadcrumb? Or can someone lead me in the right direction here? I don't want to have to use a huge breadcrumb script, just something simple is all I need.

Thanks.

Link to comment
Share on other sites

Sounds like what I need. I'm getting:

Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in index.php on line 138

Could someone clean that code up for me please? It's be great to also add in:

if x and cat = nothing. then include news.php.


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.