okay some issues been a while since i wrote php or been on this site for that matter.I am working on a login system for my users and my while clause is failing and the way the page is templated wont display an error if i put PHP:---------or die(mysql_error())--------- at the end of it here is the snippetPHP:---------$res = "SELECT * FROM users WHERE usrnm='". $usr ."'";$subres = mysql_query($res) or die('FAIL1');while($usrtst = mysql_fetch_array( $subres ) or die('FAIL2')) { if($pwd == !$usrtst['pwd']){ echo '
Quick Login:
Username
Password is Invalid
Remember Me
'; }---------though testing i found it was this line failing (notice or die('FAIL2')) yet this script works on my login processor so i dont know were i am going wrong, as this script is checking a cookie for a user name and password, check the username against the db, then validates if the pass is correct or not if it is then continues and if it fails then it redisplays the form with bold red font face to indicate a bad password in the cookie (ie someone spoofed or tampered it)hope that helps with details thanks in advance for the help
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.