-7

I'm getting the following error:

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 '' DStormr', 'ddo.png', 'Online:' at line 1`

The sql is the following:

"UPDATE articulo SET '".$nombre."', '".$imagen."', '".$text."', '".$precio."', '".$popup."', ".$genero_id.
" WHERE id=".$id"";

What am I missing/not seeing?

halfer
  • 19,824
  • 17
  • 99
  • 186
eon
  • 67
  • 5

1 Answers1

1

When you do an UPDATE you need to SET key = 'value'.

halfer
  • 19,824
  • 17
  • 99
  • 186
chrislondon
  • 12,487
  • 5
  • 26
  • 65