hi eclipse,
what you wrote is not actually sql injection. it's just a hacking method using the query string.
this is how your code work:
There should be nothing happened for above code, unless there is something special with GET parameter.
Anyway, the logs below supply you examples of hacking attempts:
Unfortunately, the hacker tries to hack a windows server while the server itself is UNIx. (nice try... get faulty?? try next time, please..)
for sql injection, here is a better example:
and your process.php
the sql injection:
input value for field user:
h4ck3r' or 1 > 0;
code flow in process.php
you can see that the hacker "injects" the sql. he manipulates the username and truncate the sql query. mysql will process the query like this:
and... he nicely passes the authentication process.
regarding this fact, it's important to check all user input and query string before processing your query.