Take input from form and pass it to function using a wp-plugin

Fist off always enable Debug in WordPress when developing. Second pay attention to how you start and end quotes. I had a echo ‘ ‘ with ‘ in side of it. Taking that out solved my issue.

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