URL: https://www.overclockers.at/coding-stuff/update_mysql_32515/page_1 - zur Vollversion wechseln!
mysql_query("UPDATE g2_forum SET (titel, name, email, text) VALUES ('$titel', '$name', '$email', '$text') where id='$id'");
stimmt dieser Befehlt ?
thnx 4 help
BobbyPI
nein.
Zitat von .deRElict.nein.
und wie gehört er richtig ?
UPDATE table SET colname='value',colname2='value2',... WHERE ...
Zitat von BobbyPImysql_query("UPDATE g2_forum SET (titel, name, email, text) VALUES ('$titel', '$name', '$email', '$text') where id='$id'");
stimmt dieser Befehlt ?
thnx 4 help
BobbyPI
insert kann man ansich nach sql std auch wie das update schriben
macht nur keiner
bzw is net wirklich bei den dbs verbreitet
#define int32 int macht auch keiner (außer gewisse kernel developer )
thnx für die schnelle hilfe ... mal schaun ob es funkt !
ich bekomm das nicht s0 ganz hin ....
"INSERT INTO g2_forum where ID='$id' (titel, name, email, text) VALUES ('$titel', '$name', '$email', '$text')"
meine id heisst ID ...
wie schreibe ich das rein `??? und an welche stelle ... es funkt nicht ganz ....
und die variable heisst $id ---> plz quick help ...
Kurzes Studium der Dokumentation kann Wunder wirken:
<http://www.mysql.com/doc/I/N/INSERT.html>
<http://www.mysql.com/doc/U/P/UPDATE.html>
ähm...Zitat von BobbyPIich bekomm das nicht s0 ganz hin ....
"INSERT INTO g2_forum where ID='$id' (titel, name, email, text) VALUES ('$titel', '$name', '$email', '$text')"
meine id heisst ID ...
wie schreibe ich das rein `??? und an welche stelle ... es funkt nicht ganz ....
und die variable heisst $id ---> plz quick help ...
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025