PHP, find exact value from mysql arranged data
<p>I have a data in My-Sql column like this</p>

<pre><code>T_interest
1,14,49,145,203,302
</code></pre>

<p>It represents each value for personal interest keywords.</p>

<p>I tried to extract the value and distinguish whether it has the value or not for the checkbox.</p>

<pre><code>if(strstr($u_interest['u_interest'], ','.$row['i_idx'])):
$selected = 'checked';
</code></pre>

<p>here is the php command that I use right now. </p>

<p>but it doesn't extract exact value from the database.</p>

<p>Let's say I want to check if the data has 14 number or from this user table</p>

<pre><code>T_interest
1,14,49,145,203,302
</code></pre>

<p>and if I use above command it tells me that a user has two values.</p>

<pre><code>14,145 
</code></pre>

<p>It looks like PHP strstr command tells me two values because these two have 14 number.</p>

<p>So, can you help me why this is happening?</p>

<p>If you want more php lines I can post them. </p>
