I am inserting POST, GET, and SESSION variables into mysql queries like this:
Is this the "best practice" or is there a better way to do it?Code:$q2 = "UPDATE `contest_answers` SET `answer` = '$q_2_ans' WHERE `ans_id` = {$_POST['ans_2_id']} LIMIT 1 "
(validation has been done on the POST variable)
Thanks!
Jason



Reply With Quote


Bookmarks