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 Link to comment https://forums.phpfreaks.com/topic/40111-solved-maybe-im-tired/ 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 Link to comment https://forums.phpfreaks.com/topic/40111-solved-maybe-im-tired/#findComment-194051 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') Link to comment https://forums.phpfreaks.com/topic/40111-solved-maybe-im-tired/#findComment-194054 Share on other sites More sharing options...
Greaser9780 Posted February 26, 2007 Author Share Posted February 26, 2007 TYVM Link to comment https://forums.phpfreaks.com/topic/40111-solved-maybe-im-tired/#findComment-194056 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.