Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert array into mysql column

//Do db insert

$arr = array('val1','val2');
$string = implode(',',$arr);


//Do db retrieve

$arr = explode(',',$string);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #array #mysql #column
ADD COMMENT
Topic
Name
9+2 =