I am using this code to get id from database:
$selected_event_ids .= $get_event_id;
and the coming output is:1149
but we want the output like: 11,4,9
I am using this code to get id from database:
$selected_event_ids .= $get_event_id;
and the coming output is:1149
but we want the output like: 11,4,9
try this
for() { // in loop
$selected_event_ids[] = $get_event_id;
}
echo implode(',',$selected_event_ids);