i have 2 tables like this
tbl_inbox
-SenderNumber
-Message
tbl_report
-Number
-Name
-Count
actually i want to show how many times these numbers appear in table count,
i have try this code,but didn't show anything.
this my code :
$count = mysql_query("SELECT count(SenderNumber) as num FROM tbl_inbox WHERE SenderNumber = ".$data['Number']"");
$result = mysql_fetch_assoc($count);
$countresult = $result['num'];