title: comparing the results from 2 functions and hiding results if they are the same
body: <p>I'm using 2 functions. The first function pulls the following information:</p>
  
  <pre><code>$availcourse = "SELECT * FROM organization_courses oc left join course c on oc.courseid=c.id WHERE organizationid=$orgid ORDER By category";
  $aresults = mysql_query($availcourse);
  </code></pre>
  
  <p>The second function pulls this information:</p>
  
  <pre><code>$depcourse = "SELECT * FROM organization_dep_courses odc left join course c on odc.courseid=c.id WHERE depid=$departmentid ORDER By category";
  $dcresults = mysql_query($depcourse);
  </code></pre>
  
  <p>My question is, how would I keep records from function #1 from displaying in function #2 if they are the same? Obvious similarities in both results will be the courseid</p>
  
  <p>I hope that makes sense.</p>