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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -