0

I'm trying to update a row, but only to append a new word at words:

mysql_query("UPDATE list SET words = words', $new_word' WHERE id = $id_row");

It's not working, I've no other ideas..

1 Answer 1

1

Try with CONCAT-

"UPDATE list SET words = CONCAT(words, '$new_word') WHERE id = $id_row"

Use mysqli or PDO. mysql is deprecated.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.