I have a problem with what seems a simple recursive query........
I have to compare two tables to check for email addys in one table that are NOT in the other. The emails to check against are in the table named table13, and have TIMECODES in them, this way the script doesn't compare EVERY email in the table.
To get the initial email addresses I use the following...
// GETS EMAIL ADDRESSES TO COMPARE
<?
$sql = "SELECT EMAIL
FROM table13
WHERE TIMEREGISTERED > 0
";
$result = @($sql,$connection) or die ("Couldn't execute query one.");
// CHECK FOR RESULTS
if (mysql_num_rows($result) > 0) {
while ($Row = mysql_fetch_array($result, 1)) {
// SET RESULT TO A VARIABLE NAME
$table13email = $newRow[EMAIL];
?>
Now that I have set the "searchable" email as a variable name, how do I search my other table (table1.EMAIL) and have the browser only list emails from table13 that DO NOT have a match in table1??
Thank you!
Kev