แบบนี้หรือเปล่าวา
//check data first
$chk="SELECT fieldname,fielddate FROM $yourtable WHERE fieldname='$nameinput' AND fielddate='$dateinput' ";
$Query=mysql_db_query($yourdatabase,$chk);
if(mysql_num_rows($Query)<=0){
//data not match, your result data not match
}else{
//data match, your update code state
}