title: How to fix this MySql select problem?
body: <pre><code>$_GET['id'] = $id1;
  $result = mysql_query("SELECT * FROM example WHERE id = '$id1'");
  while ($row = mysql_fetch_array($result)) {
     //some code
  }
  </code></pre>
  
  <p>Why isn't this code working? It doesn't obey the <code>id='$id2'</code> bit. It gets everything from table example.</p>
  
  <p>How can I fix it?</p>
  
  <hr>
  
  <p><sup>The example table contains <code>id,text,time rows</code>. The file name is <code>example.php?id=1</code>.</sup></p>