What is the best way to write this jquery.cookie to SQLite database? (without form of course)
$.cookie('cart') =
"[{"name":"Cinnamon bun","image":"/static/images/items/bakery/cinnamon_bun.jpg",
"price":" 5 uah","quantity":"2","alias":"cinnamon"},
{"name":"Croissant","image":"/static/images/items/bakery/croissant.jpg",
"price":" 10 uah","quantity":"1","alias":"croissant"},
{"name":"Donut","image":"/static/images/items/bakery/donuts.jpg",
"price":" 7 uah","quantity":"4","alias":"donut"},
{"name":"Chocolate chip cookies","image":"/static/images/items/bakery/cookies.gif",
"price":" 30 uah","quantity":"2","alias":"cookies"}]"
Aucun commentaire:
Enregistrer un commentaire