I Have a If statement that compares a time "9:00-11:00" passed from a previous page and compares it to what is allready in the database... The method works with the other text fields... but gives a parse error on determing the status of wheter A is equla to B..
this is the function..
function verify($orig,$curr,$field) {
if ($curr != $orig) {
PRINT "<b><u>$field Has Changed</u></b><br>\n
<dl>\n
<dt>Original\n
<dd>$orig\n
<dt>Current Changes\n
<dd>$curr\n
</dl>\n
";
}
}
here is the call..
verify($jd_hours1, $jd_hours, Hours AM);
My instincts tell me that it has something to due with the fact the times are intergers.. or possibly the ":"on "-" in the time.
Any ideas...