doug
doug

Reputation: 2111

Why does "admin' #" work as a sql injection attack on MySql but "admin' --" doesn't?

Isn't -- a valid MySql comment also?

Upvotes: 3

Views: 646

Answers (1)

PiTheNumber
PiTheNumber

Reputation: 23542

Try admin' -- . with a space and something to make your browser keep the space.

See also the manual.

Upvotes: 7

Related Questions