Jump to content

[SOLVED] Maybe I'm tired


Greaser9780

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.