DrMarie
05-28-2009, 03:33 PM
I have been reading (as per the suggestion of someone on this wonderful board) about injection attack and using the my sql real escape string, but I have a question.
Do you only need to use this when you are using SELECT * FROM? Or also when you are inserting into the database?
The only time I am using SELECT * FROM is searching for an id# so I could my_sql_real_escape the $id variable. But do I need to escape all of the other variables I put INTO my table?
Do you only need to use this when you are using SELECT * FROM? Or also when you are inserting into the database?
The only time I am using SELECT * FROM is searching for an id# so I could my_sql_real_escape the $id variable. But do I need to escape all of the other variables I put INTO my table?