mysql insert array into table code example
Example 1: php insert array into mysql table
$matstring=implode("','",$matrix[1]);
mysql_query('INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')');
Example 2: insert array into mysql column
//Do db insert
$arr = array('val1','val2');
$string = implode(',',$arr);
//Do db retrieve
$arr = explode(',',$string);