title: Update SQL query - Set values to PHP string variable
body: <p>This is probably a very trivial question but I've been struggling with it for a while and also tried finding answers online and still getting errors.</p>
  
  <p>Trying to write a simple UPDATE query for a PHP/MySql form:</p>
  
  <pre><code>  $sql="UPDATE mytable SET numericValue = '".$someid."', description =  '".$sometext."' WHERE id='".$myid."' ";
  </code></pre>
  
  <p>Whilst all numeric values are being passed and updated fine, I can't get the description right. The description column  is a VARCHAR and $sometext is a string and I cant get it escaped / wrapped with quotes correctly.   </p>