Also, erstmal moin!
Mein Problem ist folgendes:
Ich will aus einer Datenbank daten in ein Formular einlesen.
Aus testzwecken habe ich versucht das ganze formular in php echo befehle einzubinden.
Leider funzt das auch net.
Da ich nun mit meinem Latein am ende bin und in google nichts passendes zu finden ist,
frage ich euch, die community mal, ob ihr was wisst.
Also: meine php datei:
<? include "config.php"; $load_sql="SELECT * FROM highend Where type=1"; echo "<form action=\"update1.php\" method=\"post\" class=\"formular\">"; echo "<ol>"; echo "<li>"; echo "<label for=\"type\">Typ</label>"; echo "<select type=\"select\" name=\"type\">"; echo "<optgroup label=\"AMD\">"; echo "<option label=\"AMD\">1</option>"; echo "</optgroup>"; echo "<optgroup label=\"Intel\">"; echo "<option label=\"Intel\">2</option>"; echo "</optgroup>"; echo "</select>"; echo "</li>"; echo "<li>"; echo "<label for=\"cpu\">Prozessor</label>"; echo "<input type=\"text\" name=\"cpu\" value=\"".$row['cpu']."\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"ram\">Arbeitsspeicher</label>"; echo "<input type=\"text\" name=\"ram\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"mainboard\">Mainboard</label>"; echo "<input type=\"text\" name=\"mainboard\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"gehauese\">Gehäuse</label>"; echo "<input type=\"text\" name=\"cgehauese\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"graka1\">Grafikkarte 1</label>"; echo "<input type=\"text\" name=\"graka1\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"graka2\">Grafikkarte 2</label>"; echo "<input type=\"text\" name=\"graka2\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"sound\">Soundkarte</label>"; echo "<input type=\"text\" name=\"sound\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"netzteil\">Netzteil</label>"; echo "<input type=\"text\" name=\"netzteil\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"kühlung\">Kühlung</label>"; echo "<input type=\"text\" name=\"kühlung\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"lw1\">Laufwerk 1</label>"; echo "<input type=\"text\" name=\"lw1\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"ram\">ALaufwerk 2</label>"; echo "<input type=\"lw2\" name=\"lw2\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"hdd1\">Festplatte 1</label>"; echo "<input type=\"text\" name=\"hdd1\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"hdd2\">Festplatte 2</label>"; echo "<input type=\"text\" name=\"hdd2\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"ck\">CPU-Kühler</label>"; echo "<input type=\"text\" name=\"ck\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"sonstiges\">Sonstiges</label>"; echo "<input type=\"text\" name=\"ram\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<label for=\"preis\">Gesamt Prais ca.</label>"; echo "<input type=\"text\" name=\"preis\">"; echo "</input>"; echo "</li>"; echo "<li>"; echo "<input type=\"submit\" name=\"submit\" value=\"Speichern\" />"; echo "<input type=\"reset\" name=\"submit\" value=\"Zurücksetzen\" />"; echo "</li>"; echo "</ol>"; echo "</form>"; ?>
Und wie es so dann aussieht: Siehe anhang.
Hoffe ihr könnt mir helfen.
Hoffe auf antwort