allora ragazzi.
ho messo su un config.inc.php con il seguente codice:
<?
// parametri del database
$db_host = "teatro";
$db_user = "teatro";
$db_password = "teatro";
$db_name = "teatro";
?>
e il file install.php:
<?
include("config.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
# Struttura della tabella `calendar_admins`
#
CREATE TABLE `calendar_admins` (
`admin_id` int(11) NOT NULL auto_increment,
`login` varchar(30) NOT NULL default '',
`paswoord` varchar(30) NOT NULL default '',
PRIMARY KEY (`admin_id`),
FULLTEXT KEY `paswoord` (`paswoord`),
FULLTEXT KEY `paswoord_2` (`paswoord`),
FULLTEXT KEY `paswoord_3` (`paswoord`)
) TYPE=MyISAM AUTO_INCREMENT=5 ;
#
# Dump dei dati per la tabella `calendar_admins`
#
INSERT INTO `calendar_admins` VALUES (1, 'teatro', 'teatro');
INSERT INTO `calendar_admins` VALUES (2, 'teatro', 'teatro');
INSERT INTO `calendar_admins` VALUES (4, 'teatro', 'teatro');
# --------------------------------------------------------
#
# Struttura della tabella `calendar_cat`
#
CREATE TABLE `calendar_cat` (
`cat_id` int(11) NOT NULL auto_increment,
`cat_name` varchar(150) NOT NULL default '',
PRIMARY KEY (`cat_id`),
UNIQUE KEY `cat_id` (`cat_id`)
) TYPE=MyISAM AUTO_INCREMENT=5 ;
#
# Dump dei dati per la tabella `calendar_cat`
#
INSERT INTO `calendar_cat` VALUES (1, 'Prosa');
INSERT INTO `calendar_cat` VALUES (2, 'Musica');
INSERT INTO `calendar_cat` VALUES (3, 'Teatro ragazzi');
INSERT INTO `calendar_cat` VALUES (4, 'Conferenze');
# --------------------------------------------------------
#
# Struttura della tabella `events`
#
CREATE TABLE `events` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`contact` text NOT NULL,
`url` varchar(100) NOT NULL default '',
`email` varchar(120) NOT NULL default '',
`picture` varchar(100) NOT NULL default '',
`cat` tinyint(2) NOT NULL default '0',
`day` tinyint(2) NOT NULL default '0',
`month` smallint(2) NOT NULL default '0',
`year` smallint(4) NOT NULL default '0',
`approved` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM AUTO_INCREMENT=3 ;
#
# Dump dei dati per la tabella `events`
#
INSERT INTO `events` VALUES (1, 'bo', 'bo test', 'test5435353535', '', '', 'pasquale brillo.JPG', 1, 19, 6, 2004, 1);
INSERT INTO `events` VALUES (2, 'test2', 'test2
\r\ntest2
\r\n', 'info@test.com', 'www.bo.it', 'test@test.com', 'timos+josef.JPG', 0, 20, 6, 2004, 1);
if (mysql_query($query, $db))
echo "L'installazione è stata eseguita correttamente";
else
echo "Errore durante l'installazione";
mysql_close($db);
?>
ora pero quando vado sul file install.php mi da pagina bianca e quando vado a richiamare il calendario anche!!!
![]()
![]()
come posso verificare le strutture che DOVREBBE aver inserito!!
e come mai pagina bianca!!!!
senza nessun errore!
![]()