Store an Array in MySQL table column and use it in PHP
Posted: 14 Dec 2014, 08:34
Hi
I have an array in php:
And a mysql table with these columns: id | name | data
I want to store /insert the $arr array in the "data" column, then to can select and use it in php.
How can I do this, how can I store a php array in mysql?
I have an array in php:
Code: Select all
$arr = array(3, 'value 1', 'other value');
I want to store /insert the $arr array in the "data" column, then to can select and use it in php.
How can I do this, how can I store a php array in mysql?