PHP - Search among three columns with relation to the session
<p>Here I need your help,
I have developed a phone book management system and I want to search for contacts of the person using the username in the session.
Here is the search code I have but it returns all values even those that do not belong to that person.</p>

<pre><code>if (isset($_POST['sea'])) {
    $value=$_POST['sear'];
    $get=mysql_query("select * from contacts where iduser='".$_SESSION['username']."' || mno like '%$value%' || wno like '%$value%' || nname like '%$value%'"); 
    while ($got=mysql_fetch_array($get)) {
        echo "&lt;tr&gt;&lt;td&gt;&lt;img src=".$got['image']." width='100px' height='50px'&gt;&lt;/td&gt;&lt;td&gt;".$got['fname']."&lt;/td&gt;&lt;td&gt;".$got['lname']."&lt;/td&gt;&lt;td&gt;".$got['nname']."&lt;/td&gt;&lt;td&gt;".$got['mno']."&lt;/td&gt;&lt;td&gt;".$got['email']."&lt;/td&gt;&lt;td id='print'&gt;&lt;a href=''&gt;More&lt;/a&gt; |  &lt;a href=''&gt;Edit&lt;/a&gt; | &lt;a href=''&gt;Delete&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";
    }               
}
</code></pre>

<p>Help me please, thank you.</p>