title: Using php variables inside MySQL insert statement
body: <p>I'm using the following statement, but not sure how to get the <code>$variables</code> inside the statement properly:</p>
  
  <pre><code>mysql_query("INSERT INTO subscribers (email, referral_id, user_id, ip_address)
               VALUES ('$user_email', '$user_refer', '$user_share', '$_SERVER['REMOTE_ADDR']')");
  </code></pre>