Jump to content

Recommended Posts

I'm trying to build my downloads section now.  What is on the submit form is Title, username, catagory, description and download link. Currently this is all in one table. When you visit the downloads I want their to be the list of categorys and then the user clicks what ever category they want and then shows the list a titles in that category. For example Downloads -> Pc Games -> Team fortress 2 , Call of duty 4, so on an on Now my question is how can I make it so when they submit a entire and select the category it goes into the database but displays in the downloads under that category instead of makeing a table for each category or would that be the best way of doing it?

Link to comment
https://forums.phpfreaks.com/topic/129690-whats-the-best-way-to-do-this/
Share on other sites

You would probably want to use the get method.  Whatever you use, radio box, links etc... you could either post to itself or use the get method and pass through the url.  For example get you would use:

 

SELECT * FROM downloads WHERE category = $_GET['game_category'];

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.