The key thing to do is use parameters in your SQL statements. If you concatenate user input, it can be interpreted as part of the SQL command; hence the danger of SQL injection attacks. If you specify the user input as a parameter, then the DB understands what parts are SQL command and what is data. Someone can attempt a SQL injection attack, but it won't affect the command that is run which eliminates the danger.
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|