in reply to DBI & MySQL Login Test
if(username ne '$uname' && password ne '$pword')Single-quotes do not interpolate, so the string '$uname' above is literally 'dollar-u-n-a-m-e' and not whatever the $uname lexical holds. Likewise '$pword'.
The other thing I wonder about is just what username and password are? Function calls? Metasyntactic variables? It's always best to post actual code, especially when you say "this does not work".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI & MySQL Login Test
by roboticus (Chancellor) on Aug 26, 2009 at 10:23 UTC |