Hey guys,
I have the following queries:
$query = "SELECT * from Bank";
$result1 = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result1)){
$bank_ID = $row['bank_ID'];
$bank_date = $row['Date'];
$bank_amount = $row['Amount'];
}
$intranet_query = "SELECT * from Intranet";
$result2 = mysql_query($intranet_query) or die (mysql_error());
while ($row = mysql_fetch_array($result2)) {
$intranet_ID = $row['intranet_ID'];
$intranet_store = $row['Store'];
$intranet_amount = $row['Amount'];
}
I want to select the amounts and ID's from both tables.. but only if the Amounts from each record DONT match.
Does anyone know how i would go about doing this? I know it's some form of if statement, but I dont get how I would input the data.
Cheers