Jump to content

mysql_result()


leequalls

Recommended Posts

I have tried the followinf things in the code below and all of them give me an error

 

Warning: mysql_result(): supplied argument is not a valid MySQL result resource

 

What am I doing wrong?

 

$email = $_SESSION["sess_name"];

$res = mysql_query("SELECT * FROM members where email=$email");
$member1 = mysql_result($res, 0, "ref1"); 
$member2 = mysql_result(mysql_query("SELECT ref2 FROM members where email=$email"), 0); }

 

 

Link to comment
https://forums.phpfreaks.com/topic/139151-mysql_result/
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.