title: Select where not equal to multiple values of keys of associative array
body: <p>I had made three tables.</p>
  
  <p><strong>Table1=users</strong>.And the column names are <strong>userid</strong> (auto_increment) and <strong>username</strong>.<br>
  <strong>Table2=hobbies</strong>. column names are <strong>hobbyid</strong> (auto_increment) and <strong>hobbyname</strong>.<br>
  <strong>Table3=users_hobbies</strong>. column names are FK_userid and FK_hobbyid.</p>
  
  <p>Now <strong>hobbyname</strong> has <strong>cricket,football,volleyball</strong>.<br>
  During sign-up user <strong>selects only cricket and football</strong> and I store it in <strong>$_SESSION['hobby_id']</strong> associative array.</p>
  
  <p>But in profile he/she wants to add some more hobbies.</p>
  
  <p>So I want to <strong>display list of hobbies which are not equal</strong> to $_SESSION['hobby_id'].</p>
  
  <p>This , ofcourse didn't work:</p>
  
  <pre><code>foreach($_SESSION['hobby_id'] as $k=&gt;$v)
  {
  
    $query="select hobbyid,hobbyname from hobbies where hobbyid!= $v";
  }  
  Output was football,volleyball and cricket,volleyball....but i wanted only volleyball
  </code></pre>
  
  <p>So i want that </p>
  
  <pre><code>$query="select hobbyid,hobbyname from hobbies where hobbyid!=(multiple values of session hobby id)";
  </code></pre>
  
  <p>What code will I have to enter to get <strong>desired result(only volleyball)</strong>?</p>