Einzelnen Beitrag anzeigen

Synonym
(Gast)

n/a Beiträge
 
#1

Falsche Anfrage [gelöst]

  Alt 22. Mär 2004, 21:22
Hi,

um einen Datensatz zu ändern nutze ich folgenden Code;

Delphi-Quellcode:
 
Form1.qrMain.SQL.Text:='UPDATE `gaestebuch` Set `user`='''+Edit1.Text+''','+
                             '`password`='''+Edit2.Text+''','+
                             '`topic`='''+Edit4.Text+''','+
                             '`text`='''+synmemo1.text+''','+
                             'WHERE `id`='''+edit3.text+''';';
    Form1.qrMain.ExecSql; //SQL-Statement ausführen
leider sagt er mir das dies falsch oder unbekannter syntax ist...Where `id`=1!


Woran kanns liegen? habs so aus nem tutorial!

Gruß

Synonym
  Mit Zitat antworten Zitat