开发者

SQL Update does not work. Why?

Just a simple SQL question - Bbut i can't figure out whats wrong

"UPDATE veranstaltungen
    SET name = '$nameV', SET Datum = '$DatumV', SET beschreibung = '$beschreibungV'
 WHERE id = '$id开发者_C百科'"

I want to update the table row where the id is $id. But nothing happens here? the variables are all correct


give it like

 "UPDATE veranstaltungen  SET name = '$nameV', Datum = '$DatumV', beschreibung = '$beschreibungV' WHERE id = '$id'"


but i can't figure out whats wrong

Mysql has a wonderful feature, personally for you. It is called mysql_error()
run this function and echo it's output to see what your server will tell about this query.
I believe that you can trust to your server much more than someone who passed along this question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜