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".
In reply to Re: DBI & MySQL Login Test
by AnomalousMonk
in thread DBI & MySQL Login Test
by swordfish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |