Ok, look at this one:
I am programming a download-archive-script. Theres is one option where a user can select a rubric (like overclocking-tools, benchmark tools, etc.). When he selects that rubrik, a variable ($auswahl) containg the name of that rubric is passed to a new php page.
I made this work perfectly. Now the tough one (or maybe not):
The variable (named "$auswahl) is passed to the new page. In that page the database shall look for downloads (programs) in my table called "downloadarchiv" but only those that are within the rubric that the user selected before. All these specific downloads have to be display afterwards.
I know how to look through a database by using:
$result = mysql_query("SELECT * FROM downloadarchiv",$db);
How do I have to change the upper code to make it work the way I explained above?
I tried the following:
$result= mysql_query(SELECT FROM downloadarchiv WHERE rubrik=$auswahl,$db);
Info: "rubrik" is a variable of my table where the rubrics (benchmarks, overclocking-tools) are saved in.
Any hints? I am a bloody beginner so help is appreciated. Thank you!