0 AND flg=$flg ORDER BY date DESC"; $result = DB_ExecQuery($conn, $sql); // SQL文を実行 if (! $result) { header("Location: ".$URLTOP."dberror.html"); exit; } $rows = DB_RecordNum($result); for ($d = 0; $d < $rows; $d++) { $arr2 = DB_FieldArray($result, $d); $dates = split("-", substr($arr2["date"], 0, 10)); $dates2 = split("/", date("Y/m/d/D", mktime(0, 0, 0, $dates[1], $dates[2], $dates[0]))); if ($datebefore != $dates[0].$dates[1].$dates[2]) { $datebefore = $dates[0].$dates[1].$dates[2]; if ($d) { ?>
  " VSPACE="5">   " VSPACE="5">
   
     
&m=0"> &m=1">