Article Locations

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

Article Locations

Post by sk8erh4x0r »

Ok, this has to do with locations of articles. I have made a Tutorials page:

http://www.securityglitch.com/Tutorials

Then when you click on Web hacking for example, it will open up a page where web hacking articles will be displayed. I also have a 'write article' page so people can submit articles to the site. It has a drop box for the category which has the same categories that are listed on /Tutorials.

Now, my question is, how do i make an article link show up on the right page? Like if I select Web Hacking from the drop down box, how do i make the link to that article echo on the Web Hacking page and not any other pages?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Didn't understand the question, but I got to level 6 in basic hacking :P
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

you hand the article-page an article ID via $_GET and have it (the page) pull the relevant details pertaining to that ID from the database.
sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

Post by sk8erh4x0r »

I have figured out how to do this and now it is up and running. I have the category insert as a number. then, for example, if Web Hacking is section.php?section=1, the category number in the database is 1 for anything web hacking. The select query selects category where id = $section.
sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

COMPLETED

Post by sk8erh4x0r »

I have figured out how to do this and now it is up and running. I have the category insert as a number. then, for example, if Web Hacking is section.php?section=1, the category number in the database is 1 for anything web hacking. The select query selects category where id = $section.
Post Reply