Autor |
Beitrag |
JungerIslaender
Beiträge: 427
Erhaltene Danke: 5
Win XP
Delphi 7; Delphi 2005
|
Verfasst: So 30.08.09 23:08
|
|
jakobwenzel
Beiträge: 1889
Erhaltene Danke: 1
XP home, ubuntu
BDS 2006 Prof
|
Verfasst: So 30.08.09 23:19
Was soll dieser Code machen?
Ich vermute mal eine neue Zeile einfügen, aber was soll drinstehen?
_________________ I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
|
|
BenBE
Beiträge: 8721
Erhaltene Danke: 191
Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
|
Verfasst: So 30.08.09 23:50
_________________ Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
|
|
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1
|
Verfasst: Mo 31.08.09 11:04
Vielleicht sollte man zuallererst einmal die SQL-Syntax einhalten.
SQL-Anweisung 1:
| INSERT INTO Tabelle(Feldliste) VALUES(Wertliste) |
Beim INSERT gibt es keine WHERE-Klausel (wozu auch?). Und wenn es eine gäbe, würde sie ans Ende des o.a. Statements gehören.
|
|
JungerIslaender
Beiträge: 427
Erhaltene Danke: 5
Win XP
Delphi 7; Delphi 2005
|
Verfasst: Mo 31.08.09 16:07
Der code soll folgendes machen: Bestellung, datum, zeit in die tabelle konten bei einem bestimmten user reinschreiben. Durch den vorherigen Post, denke ich das ich statt insert dann wohl update nehmen muss.
Werde es auch direkt versuchen und mein Ergebnis posten.
|
|
Regan
Beiträge: 2157
Erhaltene Danke: 72
Java (Eclipse), Python (Sublimetext 3)
|
Verfasst: Mo 31.08.09 16:15
|
|
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1
|
Verfasst: Mo 31.08.09 16:18
Da kann ich von einer WHERE-Klausel trotzdem nichts entdecken.
|
|
Regan
Beiträge: 2157
Erhaltene Danke: 72
Java (Eclipse), Python (Sublimetext 3)
|
Verfasst: Mo 31.08.09 17:46
Ich dachte, da steht ein SET. Na dann geht das natürlich nicht .
|
|
JungerIslaender
Beiträge: 427
Erhaltene Danke: 5
Win XP
Delphi 7; Delphi 2005
|
Verfasst: Mo 31.08.09 19:13
Jo funktioniert. DANKE FÜR EURE HILFE WAR ECHT AM VERZWEIFELN!
Quelltext 1: 2: 3:
| $aendern = "UPDATE konten Set bestellung = '$bestellung' WHERE user = '$username'"; $update = mysql_query($aendern); |
|
|
Yogu
Beiträge: 2598
Erhaltene Danke: 156
Ubuntu 13.04, Win 7
C# (VS 2013)
|
Verfasst: Sa 05.09.09 22:56
JungerIslaender hat folgendes geschrieben : | Quelltext 1: 2:
| $time = time(); $time = date("H:i",$timestamp); | |
|
|
BenBE
Beiträge: 8721
Erhaltene Danke: 191
Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
|
Verfasst: Sa 05.09.09 23:49
_________________ Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
|
|