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 is a controller in php?
Why do you need to filter out empty files?
What is inheritance in php progaming?
How to get the position of the character in a string in php?
What is MVC structure in Magento?
Is php coding easy?
!== represents what?
I created a cookie with the value like '1A2A',now i want to update this value regularly (about 20 times in a minute) with the value '1A2A3A' , 3A is the new value,new value will vary on the request it may be 3A or 4A or 100A ,some times the cookie is updating with new value but not every time.Can any body suggest the solution
Tell me what is htaccess? Why do we use this and where?
Can I learn laravel without php?
Does php support function overloading?
When to use self over $this?