php - SQLSTATE[42S22]: Column not found: 1054 -


i'm french, sorry bad vocabulary. have little problem in code, when execute sql query have error:

sqlstate[42s22]: column not found: 1054 unknown column 'id' in 'where clause' 

here's code:

update s_data_bans set `name` = '$name', `text` = '$corps', `idcat` = '$cat', `on` = '$unpub' id='$id' 

the error showing have not such column named id in s_data_bans table, check out , make sure letter case of column table matches query (if it's lower case (i.e id) put id= ... in query).

good luck


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -