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

help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i

login page does not execute a else statement
I've created a login page using sessions.
When an incorrect user name or password is entered then

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

PHP Programming error. Please help!
Hi there,

Am making a website for a friend and have encountered a problem that i need fixing

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

[Need Help] php timing issues
I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorad

Problem with Subscreen
Dear Experts ,
I am facing a problem with the subscreens. My senario is as follows :

Preventing blank or already entered values
Im trying to learn how to place a read file line by line and prevent duplicate entries and also BLAN

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