PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
MySQL - Dynamische Eingabe
Beitrag
<blockquote data-quote="dlogic" data-source="post: 2122523" data-attributes="member: 101787"><p><strong>AW: MySQL - Dynamische Eingabe</strong></p><p></p><p>Hm, ich verstehe dein Problem nicht ganz... pro DB Tabellen Zeile kann doch ein Formular gespeichert werden. Da eine Tabelle mit Spalten die einzelnen Parameter des Formulars abbilden und eine Zeile ein neues Formular ist...</p><p></p><p>Änderung: Ach so, es werden auf einer Seite mehrere <form> Tags generiert. Ja, diese müssen alle in einem einzelnen <form> Tag stehen. Wie duddle schon schrieb.</p><p></p><p><span style="color: #000000"><span style="color: #007700"><</span><span style="color: #0000BB">form name</span><span style="color: #007700">=</span><span style="color: #DD0000">"1" </span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #DD0000">"POST"</span></span><span style="color: #000000"><span style="color: #007700"><span style="color: #000000"><span style="color: #0000BB">action</span><span style="color: #007700">=</span><span style="color: #DD0000">"xyz.php"</span></span>></span></span></p><p><span style="color: #000000"><span style="color: #007700"><</span><span style="color: #0000BB">input </span></span><span style="color: #000000"><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"titel[1]" </span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB">value</span></span></span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB"><span style="color: #000000"><span style="color: #007700">=</span><span style="color: #DD0000">"x"</span></span></span></span> </span><span style="color: #007700">></span></span></p><p><span style="color: #000000"><span style="color: #007700"></span></span><span style="color: #000000"><span style="color: #007700"><</span><span style="color: #0000BB">input </span></span><span style="color: #000000"><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"titel[2]" </span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB">value</span></span></span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB"><span style="color: #000000"><span style="color: #007700">=</span><span style="color: #DD0000">"y"</span></span></span></span> </span></span></span><span style="color: #007700">></span></span></p><p><span style="color: #000000"><span style="color: #007700"></span></span><span style="color: #000000"><span style="color: #007700"><</span><span style="color: #0000BB">input </span></span><span style="color: #000000"><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"titel[3]" </span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB">value</span></span></span></span><span style="color: #000000"><span style="color: #DD0000"><span style="color: #000000"><span style="color: #0000BB"><span style="color: #000000"><span style="color: #007700">=</span><span style="color: #DD0000">"z"</span></span></span></span> </span></span></span><span style="color: #007700">></span></span></p><p></p><p>Die Generierung der Namen muss hierbei dynamisch erfolgen. Dann übergibst du dem SQL Insert Befehl jede einzelne ID mit den dazugehörigen Value Werten per foreach.</p></blockquote><p></p>
[QUOTE="dlogic, post: 2122523, member: 101787"] [b]AW: MySQL - Dynamische Eingabe[/b] Hm, ich verstehe dein Problem nicht ganz... pro DB Tabellen Zeile kann doch ein Formular gespeichert werden. Da eine Tabelle mit Spalten die einzelnen Parameter des Formulars abbilden und eine Zeile ein neues Formular ist... Änderung: Ach so, es werden auf einer Seite mehrere <form> Tags generiert. Ja, diese müssen alle in einem einzelnen <form> Tag stehen. Wie duddle schon schrieb. [COLOR=#000000][COLOR=#007700]<[/COLOR][COLOR=#0000BB]form name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"1" [/COLOR][COLOR=#0000BB]method[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"POST"[/COLOR][/COLOR][COLOR=#000000][COLOR=#007700][COLOR=#000000][COLOR=#0000BB]action[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"xyz.php"[/COLOR][/COLOR]>[/COLOR][/COLOR] [COLOR=#000000][COLOR=#007700]<[/COLOR][COLOR=#0000BB]input [/COLOR][/COLOR][COLOR=#000000][COLOR=#0000BB]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"titel[1]" [/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB]value[/COLOR][/COLOR][/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB][COLOR=#000000][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"x"[/COLOR][/COLOR][/COLOR][/COLOR] [/COLOR][COLOR=#007700]> [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]<[/COLOR][COLOR=#0000BB]input [/COLOR][/COLOR][COLOR=#000000][COLOR=#0000BB]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"titel[2]" [/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB]value[/COLOR][/COLOR][/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB][COLOR=#000000][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"y"[/COLOR][/COLOR][/COLOR][/COLOR] [/COLOR][/COLOR][/COLOR][COLOR=#007700]> [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]<[/COLOR][COLOR=#0000BB]input [/COLOR][/COLOR][COLOR=#000000][COLOR=#0000BB]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"titel[3]" [/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB]value[/COLOR][/COLOR][/COLOR][/COLOR][COLOR=#000000][COLOR=#DD0000][COLOR=#000000][COLOR=#0000BB][COLOR=#000000][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"z"[/COLOR][/COLOR][/COLOR][/COLOR] [/COLOR][/COLOR][/COLOR][COLOR=#007700]>[/COLOR][/COLOR] Die Generierung der Namen muss hierbei dynamisch erfolgen. Dann übergibst du dem SQL Insert Befehl jede einzelne ID mit den dazugehörigen Value Werten per foreach. [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
MySQL - Dynamische Eingabe
Oben