我的表中有Remind_Date选项,我想将Remind_Date与Current_Date进行比较。如果两者相等,则会在负载上弹出警告,显示相应的成员名称。而且我也想为警报开发案例。警报将在提醒日期前2天或3天弹出。
$now=date("Y/m/d");
$sql = "select RemindDate from payment ";
$result = mysql_query($sql) or die(mysql_error());
while($rowval2 = mysql_fetch_array($result))
{
$RemindDate=$rowval2['RemindDate'];
}
$sql = "select MemName from payment where $RemindDate = '".$now."' ";
$result = mysql_query($sql) or die(mysql_error());
while($rowval2 = mysql_fetch_array($result))
{
$MemName=$rowval2['MemName'];
}
?>
</script>
<body onload= "alert('<?php echo $MemName ; ?>')">