Yeah, upgrade. Otherwise, give this a try. It will output the names not found
<?
$username = ""; //mysql user name
$password = ""; //mysql password
$server = ""; //mysql server name
$database = ""; //database name
$tableA = ""; //name of first table
$tableB = ""; //name of second table
$fieldA = ""; //name of the field from the first table
$fieldB = ""; //name of the field from the second table
$conn=mysql_connect($server,$username,$password);
mysql_select_db($database,$conn);
$sql = mysql_query("SELECT ".$fieldB."
FROM ".$tableB);
if(mysql_num_rows($sql) == 0) {
die("No rows returned");
}
while($nm=mysql_fetch_array($sql)) {
$cnt=mysql_query("SELECT count(*)
FROM ".$tableA."
WHERE ".$fieldA." = '".$nm[$fieldB]."'");
$row=mysql_fetch_row($cnt);
if($row[0] == 0) {
echo $nm[$fieldB]." not found<br>";
}
}
@mysql_close($conn);
?>
Quick and dirty. Hope it works 😃