how to save selected option in variable for rest api category filter

how to save selected option in variable for rest api category filter

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