I have a code and I have to display the each table separately depending on the date.
Suppose I have 3 dates,
The records of each date should be displayed in separate table. Please tell me how to do it.
$start_date = $_REQUEST["date1"];
$end_date = $_REQUEST["date2"];
$res_head="select distinct(date(timestamp) from `tablename` where date(timestamp) >='".$start_date."' date(timestamp) <= '".$end_date."' and status=0";
$res1=mysql_query($res_head);
while($res=mysql_fetch_array($res1)){
//Some code
array_push($records,"$result[2]#$ip[0]#$result[2]#$previoustime#$result[1]#$d");
<TABLE BORDER=2 CELLPADDING=4 width=\"100%\" bordercolor=\"#000000\"><TR><TH COLSPAN=2>DATE AS ON $start_date</TH><th COLSPAN=6>Status(Down)</th></TR><TR><TH COLSPAN=8> STATUS OF NETWORK</TH></TR><TR><TD>SL NO</TD><TD>CLIENT NAME</TD><TD>IP ADDRESS</TD><TD> NAME</TD><TD>START TIME</TD><TD>END TIME</TD><TD>DURATION in (days:hours:minutes)</TD></TR>