Page 1 of 1

Article Locations

Posted: Sun Jun 20, 2004 5:56 pm
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?

Posted: Sun Jun 20, 2004 6:40 pm
by d3ad1ysp0rk
Didn't understand the question, but I got to level 6 in basic hacking :P

Posted: Sun Jun 20, 2004 6:50 pm
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.

Posted: Tue Jun 22, 2004 6:24 am
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.

COMPLETED

Posted: Tue Jun 22, 2004 6:25 am
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.