I am interning at a company and they have had me build a simple website which basically displays a list of their servers and they update entries, create new entries and so on. I am new to php and mysql and just web design in general. My question is do I really need to prevent against an SQL injection attack. The login to the site does not use SQL and i am using mysqli_query which will only allow one statement to be executed. And trying to do something where you make the where clause always true doesnt really do anything because once your on the site you can we the entire database anyway. As I said I am new to all this so do I need to prevent an SQL injection attack in my case?
kbjustin 0 Light Poster
Recommended Answers
Jump to PostAlthough mysqli has benefits in preventing SQL injection I would still say it is good practise to make sure you check that any data is in a format you would expect it to be. Get into these principles early, the server you're working on now may be great and use …
Jump to PostI think the safe bet is to say there's always going to be someone who figures out a way around any security setting. Then the question is how often does your hosting company update it's PHP server? And honestly, do you want to be caught completely off guard. Or what …
All 7 Replies
SKANK!!!!! 5 Posting Pro in Training
kbjustin 0 Light Poster
SKANK!!!!! 5 Posting Pro in Training
SKANK!!!!! 5 Posting Pro in Training
kbjustin 0 Light Poster
TommyBs 1 Junior Poster in Training
paradox814 1 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.