title: PHP : how to insert (into an Sql table) a variable and concatenate it with the date function
body: <p>i've been trying to insert a row into an Sql database table , and that row's last column is supposed to contain a variable and i can't figure out how to concatenate that variable with a date function. The problem becomes the single quote marks </p>
  
  <pre><code>$SQL = "INSERT INTO news VALUES (NULL, '$user', '$text'.'date('Y-m-d H:i:s')')";
  </code></pre>
  
  <p>That $text is supposed to have a "date now" function called right after it so that i would have the date that it was inserted into the table...</p>
  
  <p>Thanks</p>