Same Problem
I have the same problem, but it works on the localhost but not in the server on the web.
=================================================================
Warning: mysql_select_db() expects parameter 2 to be resource, null given in /home/qcc/public_html/WA_SecurityAssist/Helper_PHP.php on line 14
Warning: mysql_query() expects parameter 2 to be resource, null given in /home/qcc/public_html/WA_SecurityAssist/Helper_PHP.php on line 20
==================================================================
here is my login code:
=================
<?php require_once('Connections/connQCC1.php');?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if(isset($_POST["LogIn_x"])){
$WA_Auth_Parameter = array(
"connection" => $connQCC1,
"database" => $database_connQCC1,
"tableName" => "members",
"columns" => explode($WA_Auth_Separator,"mEmail".$WA_Auth_Separator."mPassword"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"mID".$WA_Auth_Separator."mUserLevel"),
"sessionNames" => explode($WA_Auth_Separator,"mID".$WA_Auth_Separator."mUserLevel"),
"successRedirect" => "A958D04I990N/a-index.php",
"failRedirect" => "EmailPW.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
====================================================================