slipperyfish Posted February 10, 2006 Share Posted February 10, 2006 Hey guys, having real problems with my login script..$sql = "SELECT * FROM bu_users WHERE username='$usernameIn' AND password='$passwordIn'"; $result = mysql_query($sql) or die("Could not Query."); $result2 = mysql_fetch_array($result);i cant see problems with my MySQL, but it just keeps saying "Could not Query."... any suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/3382-select-problem/ Share on other sites More sharing options...
wickning1 Posted February 10, 2006 Share Posted February 10, 2006 Remove the "or die" part and use echo mysql_error(); right after the query. That may give you more information. Quote Link to comment https://forums.phpfreaks.com/topic/3382-select-problem/#findComment-11559 Share on other sites More sharing options...
fenway Posted February 10, 2006 Share Posted February 10, 2006 Agreed -- for the looks of it, either the table or field(s) don't exist, or you don't have a valid DB connection. The mysql_error() will tell you for certain. Quote Link to comment https://forums.phpfreaks.com/topic/3382-select-problem/#findComment-11560 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.