Adding option values as an array using a multi selectable select box

It’s a lot simpler than that:

<select name="swcs_postpage_id[]" id="swcs_postpage_id" multiple>

See those brackets? Boom.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)