i follow your code here it is
<?php
$sql = "SELECT DISTINCT account.account_id as id FROM account LEFT JOIN domains ON (account.account_id != domains.domain_id)";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result))
{
echo"<li>$row[id]<br>";
}
?>
but still the same, it show all the id in table1. just like
select * from account;
:queasy: what im done wrong?
I want to get the table1 id w/ no pair in table 2 id. exmple
table1 table2
id id
1 1
2 4
3 5
4
5
if i have table like that, since number 1,4,5 in table1 have pair w/ table2, the remaining number will be 2,3. how do i get that id?
Thanks for helpingπ