title: select from table where column a is not equal column b (on same table) and tableID = 2
body: <p><code>select from table where column a is not equal column b (on same table) and tableID = 2</code></p>
  
  <p>Any one who can give me a simple code on this .</p>
  
  <pre><code>&lt;?php
  $query_myslot = "select from table where column a is not equal column b (on same table) and tableID = 2";
  $myslot = mysql_query($query_myslot, $localhost) or die(mysql_error());
  $row_myslot = mysql_fetch_assoc($myslot);
  $totalRows_myslot = mysql_num_rows($myslot);
  ?&gt;
  </code></pre>