title: Preg_replace variables in server variables
body: <p>I'm trying to make a quote system, but I how to get preg_replace variables into server variables?</p>
  
  <p>Don't understand?, here is the script!</p>
  
  <pre><code>$input = preg_replace("#\[quote id=(.*?)\]#si", "&lt;blockquote&gt;&lt;p&gt;" . $class-&gt;functions('\\1') . "&lt;/p&gt;&lt;p&gt;..&lt;/p&gt;&lt;/blockquote&gt;", $input);
  </code></pre>
  
  <p>the problem: The function does not know what <code>\\1</code> means after $mysqli->real_escape_string() and returns <code>\1</code>, if I remove the real_escape_string it still says it does not exist in the database.. but it's there!!</p>
  
  <p>How to fix this?</p>