un esempio

Codice PHP:
$query "SELECT *, TO_DAYS(CURDATE()) - TO_DAYS($data_stabilita) as giorni FROM tab"