Set Value of PHP Switch case
<p>I have an PHP Switch case.  How do I swt the value of "n" using the onclick of a button?        </p>

<pre><code>    switch (n)
     {
     case 1:
       $result = mysql_query("select * from tblRestaurants order by RestName ASC");
       break;
     case 2:
       $result = mysql_query("select * from tblCuisines order by RestName ASC");
       break;
     case 3:
       $result = mysql_query("select * from tblLocations order by RestName ASC");
       break;
      case 4:
       $result = mysql_query("select * from tblLocations order by RestName ASC");
       break;
     case 5:
       $result = mysql_query("select * from tblLocations order by RestName ASC");
       break;
     } 

onclick = (switch)n=1
</code></pre>

<p>Just guessing           </p>
