Hallo liebe Community,
Unzwa möchste ich mit nem Button in eine vorhandene Tabelle neue Felder hinzufügen..
Mit einer funktioniert das wunderbar aber wie mache ich es mit mehreren...
Das funktioniert...
Das nicht
Alles anzeigen
Unzwa möchste ich mit nem Button in eine vorhandene Tabelle neue Felder hinzufügen..
Mit einer funktioniert das wunderbar aber wie mache ich es mit mehreren...
Das funktioniert...
Das nicht

PHP-Quellcode
- $sql = "
- ALTER TABLE `accounts` ADD `sup_date` text NULL ;
- ALTER TABLE `accounts` ADD `sup_bereich` text NULL ;
- ALTER TABLE `accounts` ADD `sup_frage` text NULL ;
- ALTER TABLE `accounts` ADD `sup_beschreibung` longtext NULL ;
- ALTER TABLE `accounts` ADD `sup_antwort_text` longtext NULL ;
- ALTER TABLE `accounts` ADD `sup_antwort_date` text NULL ;
- ALTER TABLE `accounts` ADD `sup_antwort_user` text NULL ;
- ALTER TABLE `accounts` ADD `sup_bild1` text NULL ;
- ALTER TABLE `accounts` ADD `sup_bild2` text NULL ;
- ALTER TABLE `accounts` ADD `sup_bild3` text NULL ;
- ALTER TABLE `accounts` ADD `sup_bild4` text NULL ;
- ";
- $db_erg = mysql_query($sql)
- or die("Anfrage fehlgeschlagen: " . mysql_error());
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Yoourt ()