how to insert array in mysql code example
Example 1: Insert mysql
#Some columns or all
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
#All columns
INSERT INTO table_name
VALUES (value1, value2, value3, ...);
Example 2: insert array into mysql column
//Do db insert
$arr = array('val1','val2');
$string = implode(',',$arr);
//Do db retrieve
$arr = explode(',',$string);