What and How possible injection in PHP and mysql?
Answer Posted / 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 View All Answers
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
What is crypt () in php?
how to track no of users logged in?
Where php basically used?
Does browser understand php?
What is the meaning of die in php?
How many php functions are there?
Explain converting an object?
What is $_ server request_method == post?
What is difference between echo and print_r in php?
What are major variables in research?
Explain how to execute a php script using command line.
How is csrf token generated?
How to merge values of two arrays into a single array?
What is the timeout period on session values?