How do i deal with something like this:
"SELECT skills FROM jobs WHERE profession = $user['profession']"
where profession is a string...
How do i deal with something like this:
"SELECT skills FROM jobs WHERE profession = $user['profession']"
where profession is a string...
Just use
"SELECT skills FROM jobs WHERE profession = '{$user['profession']}'"
PHP allows you to mix quotation marks like that
Note Assuming all the security checks and validations are done before this bit