I have given some timestamp condition descending , but if all timestamp are equals then descending condition is not working . It's returning the first row only, I need the last row.
below is code
$this->db->like("time_stamp",$_POST['date'],"after");
$this->db->order_by("time_stamp DESC");
$this->db->limit("1");
$query5= $this->db->get_where("report",array("student_id" => $student_id));
Please check table screenshot.
I need the last row ,not the first . here timestamp is same , so its not coming .
is there any way to do it ??