login page returns error message
after submitting login credentials (on live site), the following message displays:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in D:\Hosting\5614500\html\testsite\WA_SecurityAssist\Helper_PHP.php on line 14
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\Hosting\5614500\html\testsite\WA_SecurityAssist\Helper_PHP.php on line 20
Here are the referenced code lines from Helper_PHP:
row14: mysql_select_db($WA_Auth_Parameter["database"], $WA_Auth_Parameter["connection"]);
15: $WA_Auth_loginSQL = "SELECT `".implode('`,`', $WA_Auth_Parameter["sessionColumns"])."` FROM `".$WA_Auth_Parameter["tableName"]."` WHERE ";
16:
17: for($idx=0;$idx<count($WA_Auth_Parameter["columns"]);$idx++){
18: $WA_Auth_loginSQL = sprintf($WA_Auth_loginSQL.(($idx!=0)?" AND ":" ")."`%s`=%s ", $WA_Auth_Parameter["columns"][$idx], WA_GetSQLValueString($WA_Auth_Parameter["columnValues"][$idx], $WA_Auth_Parameter["columnTypes"][$idx]));
19: }
20: $WA_Auth_RS = mysql_query($WA_Auth_loginSQL, $WA_Auth_Parameter["connection"]) or die(mysql_error());
21: $WA_Auth_Rows = mysql_num_rows($WA_Auth_RS);