title: use a cookie for a mysql query
body: <p>Hello how would I use a cookie in a MySQL statement. I am using this variable for a MySQL query and i don't know how to access the cookie's value in a MySQL query. I need to have the variable to be safe against sql injection attacks. Thanks any help is appreciated. </p>