Greaser9780 Posted February 26, 2007 Share Posted February 26, 2007 Anyone know what's wrong with this: $name_sql = mysql_query("SELECT name FROM `draft_teams` WHERE `name` ='$name'"); $pass_sql = mysql_query("SELECT pass FROM `draft_teams` WHERE `pass` ='$pass'"); $name_match=mysql_result($name_sql, 0, 'name_match'); $pass_match= mysql_result($pass_sql, 0, 'pass_match'); Here's the error: Warning: mysql_result() [function.mysql-result]: name_match not found in MySQL result index 3 in select.php on line 31 Quote Link to comment Share on other sites More sharing options...
btherl Posted February 26, 2007 Share Posted February 26, 2007 The column is called name, not name_match Quote Link to comment Share on other sites More sharing options...
Greaser9780 Posted February 26, 2007 Author Share Posted February 26, 2007 You mean in my ($res, 0, 'name') Quote Link to comment Share on other sites More sharing options...
Greaser9780 Posted February 26, 2007 Author Share Posted February 26, 2007 TYVM 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.