Preventing SQL Injection


Posted on 16th Feb 2014 07:03 pm by admin

I have a question about SQL Injection, In some of our code we use this: view plaincopy to clipboardprint?Replace(inString, "'", "''") Replace(inString, "'", "''") does this prevent all forms of SQL Injection? Also what exactly does parameterized statements do?view plaincopy to clipboardprint?myCommand.Parameters.AddWithValue("@username", user); myCommand.Parameters.AddWithValue("@password", pass);
No comments posted yet

Your Answer:

Login to answer
202 Like 50 Dislike
Previous forums Next forums
Other forums

duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

PHP search multiple input field box help
I am having a problem with my search script. At current it will simply search by a selected date whi

PHP Include not working
The website is http://www.grlistingservices.com

The code block is as follows:

<

browse folder only
hi,
is there a way i can browse or get the directory or folder only and not the file?
i just w

Different payment methods with different cross company requirements in F110
We are implementing SAP in a company in the shipping industry. They have the following requirement:<

How to store checkbox array in a session, and then be able to add to it?
I'm trying to store an array of checkbox values into a session array, sort of like a shopping cart,

Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash