Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What and How possible injection in PHP and mysql?

Answers were Sorted based on User's Feedback



What and How possible injection in PHP and mysql?..

Answer / ram

sql injection can be given along with user supplied data.
Examples of sql injection:

' or 1=1 --
' OR '1'='1. these sort of input could break into the code
by tricking the sql query.

Is This Answer Correct ?    9 Yes 1 No

What and How possible injection in PHP and mysql?..

Answer / tarun

first of all tell me what is injection here...........

Is This Answer Correct ?    1 Yes 0 No

What and How possible injection in PHP and mysql?..

Answer / dinesh g

What is Injection?
When a user is inserting any value into the text box, we
store that in a variable and place it in a query. If the
user also types any query within the text box our mysql will
run the query.

ex :

INSERT INTO students (name) VALUES ('Dinesh'); DROP TABLE
Students;

Here the user types his name as Dinesh also he write the
next query to drop the table. so this table is dropped if it
is present.

TO avoid it we use addslashes() else
mysql_real_escape_string() methods to escape from the users
query.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More PHP Interview Questions

How does php session work?

0 Answers  


Hello I m 1.5 exp, i want code : ms word to Html in php,retrieve the words in ms word in to dispaly browser in (same format,alignment). pls help me everybody Regards selva

0 Answers  


What are the different types of php variables?

0 Answers  


Can we use include ("xyz.php") two times in a php page "index.php"?

0 Answers  


Which variable declarations within a class is invalid in php?

0 Answers  


What is "print" in php?

0 Answers  


What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  


What is full form of PHP?

0 Answers  


Is python similar to php?

0 Answers  


How can we connect to a mysql database from a php script?

0 Answers  


How to create a public static method in PHP?

0 Answers  


Explain the difference between array_merge() and array_combine()?

0 Answers  


Categories