DarkHavn Posted August 22, 2006 Share Posted August 22, 2006 [code]connect();$username = $_POST['agentlogin'];$pass = md5($_POST['agentpass']);$mysqlquery = "SELECT * FROM agent WHERE `name`='$username' AND `pass`='$pass'";$mysqlquery2 = mysql_query("$mysqlquery"); if(mysql_num_rows("$mysqlquery2") == 1) {[/code]Ok apparently this isn't a valid mysql result resource?Eh anyone see anything wrong with this bit of code? as i can't.In theory this should work, as there is only one user that has this login and password, so the result should be one? Link to comment Share on other sites More sharing options...
DarkHavn Posted August 22, 2006 Author Share Posted August 22, 2006 Nevermind fixed it. Link to comment Share on other sites More sharing options...
Recommended Posts