Mysql
 sql >> Database >  >> RDS >> Mysql

Selezionare i dati tra due date?

Usa il BETWEEN parola chiave:

"SELECT * FROM logs WHERE date BETWEEN '" . $from_date . "' AND  '" . $to_date . "'
ORDER by id DESC"