title: $_GET with MySQL query
body: <p>Here is my code:</p>
  
  <pre><code>if ($_GET['u'] == $userid) {
  $query = mysql_query("SELECT * FROM table WHERE uuserid='$userid'"); 
  }
  </code></pre>
  
  <p>The $userid variable is defined in the rest of the script and works properly.<br>
  My script is script.php and works correctly (it's a table that shows rows from the table toondb).
  However, there is a column in my table called uuserid.  My userid is '1'.  So, if you type... </p>
  
  <pre><code>script.php?u=1
  </code></pre>
  
  <p>I need it to show you the rows in the database where uuserid='$userid'
  It is working when I type script.php?u=1
  However, user 620 also has rows in the DB and when I type
  script.php?u=620
  I get blank results. 
  Help, please?  Maybe it's a problem with the query above :)</p>
  
  <p>-- 
  update:
  My variable actually is MY own userid</p>
  
  <pre><code>$userid = ($vbulletin-&gt;userinfo['userid']);
  </code></pre>
  
  <p>Therefore, $userid is ALWAYS 1 for me because my userid is 1.  Ugh, I am a doofus right now.
  How can I make it so, if you type script.php?u=620.. it plugs 620 into the where clause and will show you all rows in the table where uuserid=620</p>
  
  <p>Thanks!</p>