What and How possible injection in PHP and mysql?
Answers were Sorted based on User's Feedback
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 |
Answer / tarun
first of all tell me what is injection here...........
| Is This Answer Correct ? | 1 Yes | 0 No |
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 |
What are the delimiters in php?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is the purpose of the following files having extensions 1) .frm 2) .myd 3) .myi? What do these files contain?
Is rent a variable cost?
What is api laravel?
How to replace a substring in a given string?
Define object-oriented methodology?
Is false empty php?
What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
Tell me what does accessing a class via :: means?
Is array function in php?
What is PECL?