dpenguin Posted August 22, 2006 Share Posted August 22, 2006 code:[code]$db_conn = mysql_connect("localhost", "user", "pw"); mysql_select_db("database", $db_conn); $query = "select * from table " ."where name='$userid' " ." and pass=password('$password')"; $result = mysql_query($query, $db_conn) or die('Sorry, the query is not able to return a result.');[/code]This keeps dying. Help? Quote Link to comment Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Do:[code]$result = mysql_query($query, $db_conn) or die(mysql_error());[/code]and post the error message here Quote Link to comment Share on other sites More sharing options...
dpenguin Posted August 22, 2006 Author Share Posted August 22, 2006 Ooooooh, thank you!! I had the table columns named incorrectly. ::) Figures it was something simple. Quote Link to comment Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Heh... good deal :). 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.