I have a MySQL database that I’m working with, but when I try to update a row in it, it doesn’t work. Here’s the update code I’m working with:
mysql_query('UPDATE offtopic SET next = '$insert' WHERE id = '$id'');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, you should make it a bit more safe:
Now, is your
idactually string, and not numeric? If its numeric, you should rather have: