Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 24.03.06 16:59 
Hallo,

ich benutze folgenden Query
ausblenden Quelltext
1:
mysql_query("UPDATE news SET title='$title' WHERE id=$newsid");					

Allerdings gibt mir mysql_affected_rows() immer -1 zurück :cry:
Wenn ich diesen Query direkt über PHPMyAdmin ausführe, dann funktioniert alles. Die Variablen sind auch in Ordnung, das habe ich überprüft. Ich bin auch mit MySQL verbunden, denn die anderen Abfragen funktionieren alle. :gruebel: Das verwundert mich jetzt total, warum das so nicht hinhaut!!! :motz:


Moderiert von user profile iconChristian S.: Topic aus Datenbanken verschoben am Fr 24.03.2006 um 17:02

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 24.03.06 17:12 
Hat sich erledigt :zustimm:
Ich habe bei der Abfrage
ausblenden Quelltext
1:
mysql_affected_rows					

statt
ausblenden Quelltext
1:
mysql_affected_rows()					

geschrieben :autsch:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot