Sono riuscito a fare pace con easyphp ed ora ci capiamo..!!Allora io teoricamente ho ben capito cosa intendi:
es:
si ha un sito con 3 pagine (eS.HOME, FOTO, CONTATTI) ognuna delle quali richiede al database cosa visualizzare.
Partendo da questo assunto pare evidente che ci sia bisogno, innnanzi tutto, di una cosa del genere:
creare un database che chiameremo Fonte così strutturato:
CREATE TABLE IF NOT EXISTS `HOME` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`titolo` varchar(40) NOT NULL,
`testo` tinytext NOT NULL,
`data_ora` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
CREATE TABLE IF NOT EXISTS `FOTO` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`titolo` varchar(40) NOT NULL,
`testo` tinytext NOT NULL,
`data_ora` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
CREATE TABLE IF NOT EXISTS `CONTATTI` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`titolo` varchar(40) NOT NULL,
`testo` tinytext NOT NULL,
`data_ora` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
Fino ad ora è giusto il raggionamento?

Rispondi quotando