Hi.
what is wrong with the following query, which can not be executed:

$query = "SELECT id, firstName, lastName, username, password FROM users WHERE username = '' OR '1' AND password = '' OR '1' ; DELETE FROM users WHERE 1 or username = ' ' ";
$result = mysql_query($query);

any idea plz???

you cannot execute two queries what way. mysql_query only accepts one. you need to run two seperate queries.

Thanks for relpying ...

Umm.. just curious.. Are you trying sql injection ?

yeah, I want to test on my system, to see the results ... but unfortunately it is not working ...

do u have any idea? I am using the POST method...

No :(

and all the faith i had in nav33n. im crushed lol.

i have taken a look into sql injection and from what i have seen you are doing it correctly (i think).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.