0

I need to pass the following SQL statement:

UPDATE table_products 
SET shipping = "a:5:{s:16:"min_items_in_box"; i:0;s:16:"max_items_in_box"; i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;}";

I'm getting a syntax error from phpMyAdmin panel, asking to check the syntax. Could you please let me know what is wrong with the syntax?

Mark Storey-Smith
  • 31,687
  • 8
  • 89
  • 124
user20348
  • 9
  • 1

1 Answers1

3

Pass strings to the dbms within single quotes, not within double quotes.

UPDATE table_products 
SET shipping = 'a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;}';