That seemed to solve that particular problem....but maybe I am still not getting the results I am hoping for. It seems that the code never 'sees' the match.....is it because they are placed in a loop before they get to the if statement.
Example:
///////////// This gets date info ---> $row2 //////
$query2="SELECT Id from mastertable WHERE p_mod_date_time > '2004-04-25 10:00:18'";
$result2=mysql_query($query2) or die (mysql_error());
$num2=mysql_numrows($result2);
if(mysql_numrows($result2) == '0') {
echo "Sorry, no results were found...";
} else {
// display results here
}
while ($row2 = mysql_fetch_array($result2)) // this will grab the results from query
{
$wang = $row2[Id];
}
I also have $chung = $row[Id]; coded in the same fashion as above.
So.... this:
if($chung == $wang )
{
$new_prop = "Match";
}
else
{
}
Doesnt seem to get a match. I know this is probably confusing, but I couldnt get any Id values unless they were in a loop. Any ideas on what else I could do?
All I am trying to do is get the results of SELECT Id from mastertable WHERE p_mod_date_time > '2004-04-25 10:00:18' and displaying an output of a valiable if it excisits.