View Single Post
  #1  
Old 08-10-2006, 02:37 PM
venomous venomous is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
venomous is on a distinguished road
Default unable to pass any variables from the index

Hi, I am trying to make a simple session login script which checks the rows in a msql database. I cant pass any variables from the index over to the class such as $query_password.
Ive tried both print_r and echoing the results but no luck.
Can any one see why the error is?
on the index

PHP Code:
$check = new login($query_username,$query_password,$table_name, $table_username,$table_password,$redirect_accepted ,$redirect_denied);
$check->login_check();


in the class

PHP Code:
require_once('../shared/lib/db_class.php');
class login extends dbclass
{

/* construct */
function __construct($query_username,$query_password,$table _name,$table_username,$table_password,$redirect_ac cept,$redirect_denied) {


$this->query_username = $query_username;
$this->query_ -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - unable to pass any variables from the index
View Single Post
  #1  
Old 08-10-2006, 02:37 PM
venomous venomous is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
venomous is on a distinguished road
Default unable to pass any variables from the index

Hi, I am trying to make a simple session login script which checks the rows in a msql database. I cant pass any variables from the index over to the class such as $query_password.
Ive tried both print_r and echoing the results but no luck.
Can any one see why the error is?
on the index

PHP Code:
$check = new login($query_username,$query_password,$table_name, $table_username,$table_password,$redirect_accepted ,$redirect_denied);
$check->login_check();


in the class

PHP Code:
require_once('../shared/lib/db_class.php');
class login extends dbclass
{

/* construct */
function __construct($query_username,$query_password,$table _name,$table_username,$table_password,$redirect_ac cept,$redirect_denied) {


$this->query_username = $query_username;
$this->query_ -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote