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? Link to comment https://forums.phpfreaks.com/topic/62288-solved-php-query-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.