telsiin Posted November 23, 2009 Share Posted November 23, 2009 Hi all I am try to trouble shoot this function error Your help would be greatly appreciated Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /../../../actiontest.php on line 7 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /../../../actiontest.php on line 9 5 6 function optionAction($actiontype){ 7 mysql_select_db($database_actionrpg, $actionrpg); 8 $query_action = "SELECT * FROM actionlist WHERE actionlist.action_type = '$actiontype'"; 9 $action = mysql_query($query_action, $actionrpg) or die(mysql_error()); 10 $row_action = mysql_fetch_assoc($action); 11 $totalRows_action = mysql_num_rows($action); 12 } 13 optionAction("Attack"); 14 15 ?> Quote Link to comment Share on other sites More sharing options...
felixtgomezjr Posted November 27, 2009 Share Posted November 27, 2009 what is the value of your $actionrpg in mysql_select_db($database_actionrpg, $actionrpg);? I believe that is where the error lies. 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.