title: PHP sql query syntax
body: <p>Noticed a small issue in the syntax of a sql query, here's how it goes:</p>
  
  <pre><code>$email = "name_lastname@server.com";
  
  $query  = "Select * From Users Where email=".$email;
  </code></pre>
  
  <p>This does not work, the query has been tested and works fine, however this essentially evolves to :</p>
  
  <pre><code>Select * FROM Users WHERE email=name_lastname@server.com ;
  </code></pre>
  
  <p>Which yields a null result.</p>
  
  <p>To execute it the right way, I add a twist to the syntax of my $email variable, essentially as:</p>
  
  <pre><code>$email = "\"name_lastname@server.com\"";
  </code></pre>
  
  <p>Once I specify quotations within the string variable, that is when it executes as expected yielding the desired result.</p>
  
  <p>I am not sure if this is the most aesthetic way to go about approaching my syntax for query execution, and I do think there are alternatives. Grateful to those who shed a light on this</p>