in reply to Re^2: DBI & MySQL Login Test
in thread DBI & MySQL Login Test
Note the " around your name, they make this a string.SELECT LastLogin FROM Users WHERE Username="astroboy"
SELECT 1 WHERE "astroboy"=0x617374726f626f79
PS: You could also use SQL commands to play with your string, because the SQL server trade it as a plain string, not a list of HEX-codes:
This would match astroboy, ASTROBOY and AstroBoy in the DB, but not 0x617374726f626f79 or 0x617374726F626F79.SELECT 1 FROM Users WHERE LOWER(Username)=LOWER(0x617374726f626f79) AN +D Password=0x617374726f626f79
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DBI & MySQL Login Test
by astroboy (Chaplain) on Aug 26, 2009 at 14:59 UTC | |
|
Re^4: DBI & MySQL Login Test
by astroboy (Chaplain) on Aug 26, 2009 at 15:24 UTC |