$query = "SELECT id FROM $table WHERE DATE_FORMAT(timestamp_aaaammgg_hhmmss, '%Y%m%d') = '$aaaammgg'";
Regole del Forum