Make a $date
variable in your function and then on every iteration compare it to the current rows' date like so:
var $date = "";
while($info = mysql_fetch_array( $data )) {
$id_num=$id_num + 1;
echo "<tr>";
if ($date==$info['date']) {
echo "<td>".$info['date']."</td>
<td>$id_num</td>
<td>".$info['time']."</td>
<td>".$info['user']."</td>
<td>".$info['remarks']."</td>";
}
else {
$date=$info['date']; //set it for the new date first
//do your row magic
}
echo "</tr>";
}
Updated from OPs screenshot
var $date = "";
while ($info = mysql_fetch_array( $data )) {
$id_num++;
echo "<tr>";
if ($date == $info['date']) {
echo "<td>"./**nothing**/."</td>";
echo "<td>$id_num</td>
<td>{$info['time']}</td>
<td>{$info['user']}</td>
<td>{$info['remarks']}</td>";
}
else {
$date = $info['date']; //set it for the new date first
echo "<td>$date</td>
<td>$id_num</td>
<td>{$info['time']}</td>
<td>{$info['user']}</td>
<td>{$info['remarks']}</td>";
}
echo "</tr>";
}
Based on what you're showing in your screenshot, it looks like that might fix it.