This has confused me, i am tiring to store an array as a variable before posting the variable into my database.
here is my code
foreach( $_POST['parts'] as $key => $value){
$aparts .= $value.',';
}
it stores $aparts
fine but i get the Undefined variable error in the following line.
$aparts .= $value.',';
I am quite new and learning as i go I would like to know why this has happened :)