La data, come detto, viene passata attraverso tre diversi campi. Giorno, mese e anno. Questi tre campi, nella tabella "eventi", sono valorizzati come INT (numero intero quindi)
Ecco la struttura della tabella
CREATE TABLE `eventi` (
`event_id` int(5) unsigned NOT NULL auto_increment,
`evento` text NOT NULL,
`luogo` text NOT NULL,
`giorno` int(2) NOT NULL default '',
`mese` int(2) NOT NULL default '',
`anno` int(4) NOT NULL default '',
`ora` varchar(50) NOT NULL default '',
`descrizione` text NOT NULL,
`disponibilita` int(3),
`prezzo` decimal (5,2),
`autore` varchar(50) NOT NULL default '',
`data` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`nome` varchar(50) NOT NULL default '',
`size` varchar(25) NOT NULL default '',
`type` varchar(25) NOT NULL default '',
`immagine` longblob NOT NULL,
`pub` int(1) NOT NULL default '0',
PRIMARY KEY (`event_id`)
)