» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2006, 01: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
Revenue Sharing Ads ( ?):
  #2  
Old 08-10-2006, 01:40 PM
woods woods is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
woods is on a distinguished road
Default

You need to use $this->query_username, $this->query_password, etc. in the login_check() method.

That's assuming you're passing a valid value when you create the object in first place, too. -- 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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hash index support? Lea MySQL Forums 1 02-27-2007 08:08 AM
custom index cache shazyaz MySQL Forums 1 10-16-2006 04:14 AM
how long has it taken Yahoo to fully index ... walsh Yahoo 3 09-21-2006 10:20 AM
Welcome to cpi consumer price index on OutSourcingPlans... osp Introductions 0 08-29-2006 04:22 PM
Welcome to consumer price index on OutSourcingPlans... osp Introductions 0 08-29-2006 02:55 PM


All times are GMT. The time now is 02:17 AM.