Jump to content

function error


telsiin

Recommended Posts

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 ?>

 

Link to comment
https://forums.phpfreaks.com/topic/182674-function-error/
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.