This might be an idiotic question, cause I can't find anything related on the internet.
I have a function to update a post (wording / text) in the SQL database..I have switch hosting companies, and with all the shit that fell apart - I am unable to solve this specific one. I am using the same SQL version on this hosting company as on the previous one....
I get this error message :
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
'n boodskap of n ding moet hier wees' WHERE idd = '13''
at line 1
The closest 'error code' to this situation I could find was - When SQL gives you this message, it means your entire code is messed up and it can't seem to understand what you want to do.
The line of code with the error is very simple -
mysqli_query($conn, "UPDATE msgs SET messg = $dibod WHERE idd = $id")
Also tried
mysqli_query($conn, "UPDATE msgs SET messg = '$dibod' WHERE idd = $id")
And
mysqli_query($conn, "UPDATE `msgs` SET `messg` = '$dibod' WHERE `idd` = '$id'")
The only thing that changed is the error code - it displays the error message with quotes/backslashes