Need help structuring php
<p>I need some help structuring my php. I am trying to get 3 different searches to work. one search is a regular text search which is default and is what is in the else statement. Here is a barebones of what I am doing to get the 2 searches to work. As you can see the script checked if media "all" was selected and if not, it uses the else statement to show the default search. </p>

<pre><code>if(isset($_GET['media']) &amp;&amp; 
    $_GET['media'] == 'all') 
    { //Code goes here for media search for all media results  }


else{ //code goes here for default search}
</code></pre>

<p>This works fine for the 2 searches but I have a third search I want to use but dont know how to implement it correctly.</p>

<p>the third search is for only media</p>

<pre><code>if(isset($_GET['media']) &amp;&amp; 
    $_GET['media'] == 'only') 
    { //Code goes here for media search for only media results  }
</code></pre>

<p>Basically all I am trying to figure out is how to get all 3 searches to work. I know why the first 2 will work because the IF and ELSE but I am not exactly sure how I would add in the ONLY media search. Can anyone give me some suggestions? thanks.</p>
