please can anyone help me, I am familiar with PHP but I'm not good in it.please help. I have two table and both have id
, see sample,
Table1
----------------------------------
**ID** | **NAME** | **AGE** |
----------------------------------
001 | john | 21 |
----------------------------------
002 | erik | 18 |
----------------------------------
003 | ella | 19 |
----------------------------------
and soon...
Table2
----------------------------------
**ID** | **SUBJECT** | **GRADE** |
----------------------------------
001 | math | 80 |
----------------------------------
003 | english | 83 |
----------------------------------
and soon....
here is the problem, I just want to select a row from table1 were its id
dont match in table2.
I used this condition but it wont work the way I expected to so that means this is wrong,
if($t1_id!=$t2_id){
blah blah blah...
}
else
{
all data is match!
}
when an id
in table2 matched in table1 it already show that my data is all match
even if there is only one entry in table2.
Please help me. If you don,t understand how I show my problem please tell me,THANK YOU!.