ich habe mir aus dem Downloadarchiv die Datei (12) 2020-08-30-mysql_nachrichten.zip
gespeichert, entpackt, bei verbindung.php die db Daten eingetragen, alles via FTP upload.
Installation.php im Browser aufgerufen, und es kommt folgende Meldung...
Code: Alles auswählen
Nachrichten
✘ Die Datei: "verbindung.php" muss unbedingt mit der Zeichenkodierung "UTF-8 (ohne Signatur (BOM))" gespeichert werden!
Siehe: Schriftzeichen richtig darstellen
Hier mal der code von der instalation.php
Code: Alles auswählen
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Datenbank-Tabelle erstellen</title>
<style>
body {
font-family: Verdana, Arial, Sans-Serif;
}
a:link, a:visited {
color: #0078D7;
text-decoration: None;
}
a:hover {
text-decoration: Underline;
}
</style>
</head>
<body>
<?php
/*
* Nachrichten - Installation - installation.php (utf-8)
* - https://werner-zenk.de
*/
include "verbindung.php";
if ($db->query("CREATE TABLE IF NOT EXISTS `" . $TABLE_PREFIX . "nachrichten` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`kategorie` VARCHAR(50) COLLATE utf8_unicode_ci NOT NULL,
`anzeige` tinyint(1) NOT NULL,
`titel` VARCHAR(120) COLLATE utf8_unicode_ci NOT NULL,
`autor` VARCHAR(45) COLLATE utf8_unicode_ci NOT NULL,
`nachricht` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`tags` VARCHAR(50) COLLATE utf8_unicode_ci NOT NULL,
`bild` VARCHAR(25) COLLATE utf8_unicode_ci NOT NULL,
`url` VARCHAR(250) COLLATE utf8_unicode_ci NOT NULL,
`pin` TINYINT(1) NOT NULL,
`datum` DATETIME NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `nachricht` (`nachricht`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;")) {
echo '<h4>Die Datenbank-Tabelle `' . $TABLE_PREFIX . 'nachrichten` wurde erstellt.</h4>
<p>» <a href="editor.php?lesezeichen">Weiter zum Nachrichten Editor</a></p>';
}
else {
echo '<h4>Fehler beim erstellen der Datenbank-Tabelle.</h4>';
print_r($db->errorInfo());
}
?>
</body>
</html>
Grüssle
Sky-Kay