title: how to use placeholders in mysql queries from php
body: <p>I am trying to make a prepared query like this one:</p>
  
  <pre><code>$stmt=$mysqli-&gt;prepare("SELECT zonasrepartoid, calle, municipio, codigopostal FROM zonasreparto WHERE municipio like concat('%',:m,'%')")
                  $stmt-&gt;bind_param(':m',$incity);
                  $stmt-&gt;execute();
  </code></pre>
  
  <p>I have tried to use the % many times in different ways, but i have no more ideas of how to use it, just to make it work. If any one could tell me what is wrong i would appreciate that.</p>
  
  <p>Thank you in advance!               </p>