importing to postmeta table some meta values
-
trying to import an array (a:4:{}):
a:4:{i:0;a:3:{s:5:"title";s:7:"Updated";s:4:"desc";s:7:"Updated";s:6:"rating";s:0:"";}i:1;a:3:{s:5:"title";s:6:"Videos";s:4:"desc";s:6:"Videos";s:6:"rating";s:0:"";}i:2;a:3:{s:5:"title";s:6:"Charts";s:4:"desc";s:6:"Charts";s:6:"rating";s:0:"";}i:3;a:3:{s:5:"title";s:7:"Content";s:4:"desc";s:7:"Content";s:6:"rating";s:0:"";}}
but it gets imported to database like this, as a string (S:326:””):
s:326:"a:4:{i:0;a:3:{s:5:"title";s:7:"Updated";s:4:"desc";s:7:"Updated";s:6:"rating";s:0:"";}i:1;a:3:{s:5:"title";s:6:"Videos";s:4:"desc";s:6:"Videos";s:6:"rating";s:0:"";}i:2;a:3:{s:5:"title";s:6:"Charts";s:4:"desc";s:6:"Charts";s:6:"rating";s:0:"";}i:3;a:3:{s:5:"title";s:7:"Content";s:4:"desc";s:7:"Content";s:6:"rating";s:0:"";}}";
The first text is what is in the csv, the second block is what turns up in the database.
How do I get just the first text in the database?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘importing to postmeta table some meta values’ is closed to new replies.