title: Mysql Like Syntax
body: <p>Quick question: How do I mysqli_escape_string a variable enclosed in a like clause?  </p>
  
  <pre><code>"SELECT * FROM table WHERE name LIKE '%". %s . "%'"    
  </code></pre>
  
  <p>or  </p>
  
  <pre><code>"SELECT * FROM table WHERE name like '%"."%s"."%'"
  </code></pre>
  
  <p>don't work.  </p>
  
  <p>Thanks!</p>