title: Two different $_GET variables on SWITCH (PHP)
body: <p>Im using Switch statment to change the content of my page, like this:</p>
  
  <pre><code>$id=$_GET['id'];
  $n = $_GET['n'];          
  switch ($id) {
      case 0:
          include("news.php");   
          break;      
      case 1:
          include("newsdetail.php?n=".$n);
          break;                                                                                            
      default:  
          include("news.php");
  }
  </code></pre>
  
  <p>In news.php i show all the existing news like this:</p>
  
  <pre><code>    while($myrow = mysqli_fetch_array($result)){
      echo "&lt;table&gt;
              &lt;tr&gt;
               &lt;td&gt;&lt;img width='200' heigth='115' src='images/".$myrow['smallimage'].".jpg'/&gt;&lt;/td&gt;
               &lt;td&gt;
               &lt;b&gt;".$myrow['title']."&lt;/b&gt;
                &lt;br /&gt;
               &lt;i&gt;By ".$myrow['author'].", ".$myrow['date']."&lt;/i&gt;
                &lt;br /&gt;
               ".$myrow['preview']."&lt;br&gt;
               &lt;a href='index.php?id=1&amp;n=".$myrow['id']."'&gt;&lt;b&gt;READ&lt;/b&gt;&lt;/a&gt;
               &lt;/td&gt;
              &lt;/tr&gt;
             &lt;/table&gt;";
  }
  </code></pre>
  
  <p>And insidetails.php:</p>
  
  <pre><code>    $idnews = $_GET['n'];
  $sql = "SELECT * FROM news WHERE id='$idnews'";
  $result = mysqli_query($db,$sql);
  while($myrow = mysqli_fetch_array($result)){
      echo    $myrow['title']."&lt;br&gt;
              &lt;i&gt;Por ".$myrow['author']."&lt;/i&gt;&lt;br&gt;
              ".$myrow['date']."&lt;br&gt;
              &lt;img src='images/".$myrow['bigimage'].".jpg'&gt;
              ".$myrow['body']."";
  }
  </code></pre>
  
  <p>When I try this I get an url like <code>.../index.php?id=1&amp;n=1</code> but shows no content. Everything works fine when tested alone.
  Is it possible to make something like this and mak it work?</p>