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 rtrim php?
Is php closing tag necessary?
What are html entities?
Why did you choose this particular career path?
Differences between get, post and request methods ?
What is warning – “cannot modify header information – headers already sent”?
A company named Pensar Technologies in chennai has offered me a job as Software Trainee in chennai.But they are asking to pay demand draft of Rs.75000/- in the name of the company.They are saying the gross renumeration will pay Rs.90000/- annually.I want to know whether this is good or bad company?Help me out in this.
I have written a source code in php but I do not know how to compile that and conduct it with a website please explain me the how to compile that ?
Is laravel better than codeigniter?
What is env in laravel?
How does the identity operator === compare two values?
How can we change the value of a constant?