SetaPDF
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 06.05.2003, 02:02   #1
TP-Member
 
Registriert seit: Apr 2003
Ort: Wien
jokkmokk macht alles soweit korrekt

kl. prob mit dateneintrag in db aus form per php


seas,
ich hab folgendes prob: ich bin mysql-anfänger und möchte mir mal zum testen ne kleine db anlegen, aber ich scheiter schon am daten eintragen, könnte mir vielleciht wer schnöll anhand eines kleinen beispiels das zeigen? nehmen wir also an ich hab ne db mit filmen 1.spalte titel 2. spalte sprache, wenn ich was einfügen will schreib ich html-form
<form method="post" action="insert.php">
<input type="text" name="titel">
<input type="text" name="sprache">
<input type="submit" name="eintragen" value="eintragen">
<input type="reset" name="reset">
</form>
und dann ne eben die insert.php - nur WIE sollte die aussehen, ich packs grade ur nicht...HELFT MIR bitte!!!
vielen dank schonmal
greetz
jokkmokk
__________________
"Trying is the first step towards failure."

Geändert von jokkmokk (06.05.2003 um 02:06 Uhr).
jokkmokk ist offline   Mit Zitat antworten


Alt 06.05.2003, 04:15   #2
TP-Specialist
 
Benutzerbild von mike
 
Registriert seit: Jan 2002
Ort: TP/Dynamik
mike bringt sich richtig ein
drei uhr ist zu spät um mit etwas auzuhören und zu früh mit etwas anzufangen. drum nur ein link:

http://www.traum-projekt.com/forum/s...&threadid=8524
__________________
Gehelft? Hier kannst du dich bedanken.

mike
mike ist offline   Mit Zitat antworten
Alt 06.05.2003, 11:10   #3
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Wieviel ahnung hast Du von PHP???

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 06.05.2003, 11:13   #4
TP-Specialist
 
Benutzerbild von mike
 
Registriert seit: Jan 2002
Ort: TP/Dynamik
mike bringt sich richtig ein
ich? geht so.
__________________
Gehelft? Hier kannst du dich bedanken.

mike
mike ist offline   Mit Zitat antworten
Alt 06.05.2003, 11:30   #5
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
@longfang: Darauf hab ich jetzt gewartet!

@jokkmokk: Das Script könnte z.B. so aussehen:
PHP-Code:

<?php

$host 
"localhost";
$usr "root"
$passw "";

$conn mysql_connect ($host$usr$passw);
mysql_select_db ("DeineDB"$conn);

$sql "INSERT INTO tabelle1 (Titel, Sprache) VALUES ('$titel', '$sprache')";

$erg mysql_query($sql$conn);

mysql_close($conn);

?>
lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 06.05.2003, 15:19   #6
TP-Member
 
Registriert seit: Apr 2003
Ort: Wien
jokkmokk macht alles soweit korrekt
danke, hab mich zwar schon durch tut's gelesen, aber die warn jedesmal fehlerhaft, schrecklich is das, na jedenfalls vielen dank nochmal, werd mich gleich wieder mal an die arbeit machen,
greetz,
jokkmokk
__________________
"Trying is the first step towards failure."
jokkmokk ist offline   Mit Zitat antworten
Alt 06.05.2003, 15:24   #7
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Erledigt?
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Traum-Dynamik
kl. prob mit dateneintrag in db aus form per php kl. prob mit dateneintrag in db aus form per php
« Verschiedene Join-Arten | PHP-n00b sucht Hilfe => echo-Funktion »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:50 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67