I'd like to store the following array in a single text field in a mySQL table:
$user_rating[0] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 1',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[1] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 2',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[2] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 3',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[3] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 4',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[4] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 5',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[5] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 6',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
$user_rating[6] = array('percent' => 'XXXXXXXXXXXXXXXXX',
'category' => 'Category 7',
'description' => 'XXXXXXXXXXXXXXXXX',
'link' => 'XXXXXXXXXXXXXXXXX',
'thumbnail' => 'XXXXXXXXXXXXXXXXX');
I believe I need to implode the associative arrays as well to accomplish this but am having some trouble.
Any other/better array structure solutions are also welcomed.
Thanks