MysqlQuery wild card from string
<p><code>$value</code> is grabbed from checkboxset from previous .php </p>

<pre><code>$value = $_POST['checkbox_value'];  
$value = implode('', $value); // since it's an array I convert it to a string
</code></pre>

<p><code>$value</code> is now defined as <code>*N*O*</code> (5-letter string)</p>

<pre><code>$percent = '%';
$value = str_replace('*', $percent, $value); // that's being desperate already

$query = $FirstPartOfQuery. " AND word LIKE '{$value}'";
</code></pre>

<p>That should produce a working code for my query</p>

<pre><code>AND (word LIKE 'C%' AND word LIKE '%N%O%')
</code></pre>

<p>It is exactly what my query prints, but it's not working.</p>

<p>But if i define <code>$value = '%N%O%';</code> manually, it's fine and it compiles.</p>

<p>My guess is, that the posted value, after converting into a string is not being read as a single quoted string.</p>

<p>I thought <code>%</code> was causing upset, therefore I used <code>*</code> in <code>checkbox_value</code> instead to check. No help.</p>