php - select from table where column a is not equal column b (on same table) and tableID = 2 -
select table column not equal column b (on same table) , tableid = 2
any 1 can give me simple code on .
<?php $query_myslot = "select table column not equal column b (on same table) , tableid = 2"; $myslot = mysql_query($query_myslot, $localhost) or die(mysql_error()); $row_myslot = mysql_fetch_assoc($myslot); $totalrows_myslot = mysql_num_rows($myslot); ?>
try changing query below :
select * tablename column1 <> column2 , tableid = 2
Comments
Post a Comment