sl7ven Posted July 29, 2007 Share Posted July 29, 2007 Hi, I have my connection to the mysql server and database both connecting, my problem is this in php: $query = "SELECT username FROM users WHERE username = '$un' AND pass = SHA1('$p')"; $result = mysql_query($query, $dbc); $row = mysql_fetch_array($result); I get this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource Is there something wrong with the above code? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.