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? 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. 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. Link to comment https://forums.phpfreaks.com/topic/3382-select-problem/#findComment-11560 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.