I'm trying to select the date closest to the current date, but I'm not getting a good result.
The insertion is:
$titulo = trim($_POST["titulo"]);
$descricao = trim($_POST["descricao"]);
$data = $_POST['data'];
the query is:
SELECT * FROM eventos WHERE data > GETDATE() LIMIT 1
What I need is to get the DATA column in the event table where the registered DATA is greater than the current date.