Is it possible to save multiple entries in one column only?
I have an array and i save like this
foreach($studentlist as $value) {
$stmt7 = $dbh - > prepare("INSERT INTO student_tbl (student_id,student_name) VALUES (?,?)");
$stmt7 - > bindValue(1, $value['studentid'], PDO::PARAM_STR);
$stmt7 - > bindValue(2, $value['studentname'], PDO::PARAM_STR);
$stmt7 - > execute();
}
this will result in number of rows depending on the number of students.
How can i make it in way that all the $value['studentname'] will be saved in one column in one row. It can be separated by coma. Is is possible to save array like in data base