title: Using a PHP $_GET Variable in an Embedded SQL Query
body: <p>So I have my PHP page and in the address bar it says something like this:</p>
  
  <pre><code>http://blabla/ClientStats.php?client=blabla
  </code></pre>
  
  <p>I had used the $_GET['CLIENT'] variable successfully until I wanted to access it inside an SQL query, like this:</p>
  
  <pre><code>&lt;?php
  $query = "SELECT ... ... ... FROM ... ... ... WHERE Client = '" + $_GET['CLIENT'] + "'";
  ?&gt;
  </code></pre>
  
  <p>The query is a lot more complex than that, but will that "WHERE" statement work?</p>
  
  <p>I'd tried to get this working quite a few different ways with no success so if I could find out the way today to get it working tomorrow that would be great (can't even remember if I tried doing it as I wrote above!).</p>
  
  <p>So will that work, if not how should I do it?</p>