if($view_trip->date_trip.(" ").$view_trip->time_trip >= date("Y-m-d H:i") && $view_trip->view === "yes")
// в date_trip - дата
// в time_trip - время
$sql = 'SELECT * FROM trips WHERE view = "yes" ORDER BY id DESC';
SELECT * FROM trips
WHERE UNIX_TIMESTAMP(CONCAT(date_trip, " ", time_trip)) >= UNIX_TIMESTAMP()
AND view = "yes"
ORDER BY id DESC