Beste lezer,
Ik had een gastenboek gemaakt, alles geupload maar krijg nu volgende foutmeldingen.
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/DB0016/domains/.nl/public_html/gast/nieuw.php on line 23
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/DB0016/domains/.nl/public_html/gast/nieuw.php on line 24
Duplicate entry '0' for key 1
Op lijn 23 en 24 staat dit
$datum = date("Y-m-d");
$tijd = date("H:i:s");
Bericht komt wel in database zoals je hieronder kan zien.
--
-- Tabelstructuur voor tabel `accounts`
--
CREATE TABLE IF NOT EXISTS `accounts` (
`Gebruikersnaam` varchar(20) NOT NULL,
`Wachtwoord` varchar(20) NOT NULL,
PRIMARY KEY (`Gebruikersnaam`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Gegevens worden uitgevoerd voor tabel `accounts`
--
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `Gastenboek`
--
CREATE TABLE IF NOT EXISTS `Gastenboek` (
`bericht` int(11) NOT NULL,
`datum` date NOT NULL,
`tijd` time NOT NULL,
`tekst` text NOT NULL,
`naam` varchar(25) NOT NULL,
`email` varchar(50) NOT NULL,
`website` varchar(50) NOT NULL,
PRIMARY KEY (`bericht`),
KEY `datum` (`datum`,`tijd`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Gegevens worden uitgevoerd voor tabel `Gastenboek`
--
INSERT INTO `Gastenboek` (`bericht`, `datum`, `tijd`, `tekst`, `naam`, `email`, `website`) VALUES
(0, '2010-05-16', '12:05:06', 'test test test', '', '', '');
Bedankt om mee te denken.
1.011 views