Answer the question
In order to leave comments, you need to log in
How can I rewrite this expression into an SQL query?
Please tell me how to write this line:
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';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question