Hi all,
I am executing query inside a function and it prompts me the following error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
Does anyone knows the meaning of this error?
The following is part of the code:
function Mstrength($realm_number,$k_number,$race){
// this is the line that promts the error
$relicB=mysql_query("SELECT * FROM relicdb WHERE Rno = '$realm_number'",$link ) or die(mysql_error());
$relic_bonus=mysql_fetch_array($relicB);
}
The value passed to this function is correct. I've done an echo test for it..
Any comments / advice wil be appreciated. Thank you.