Thread: The SQL Class
View Single Post
Old 01-17-2009, 01:42 AM   #49 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

I just noticed that your userclass uses mysql_result. I haven't used it in my class, actually, I've never used it. But I could implement it in the getQueryResult.

My idea would basicly means that you would do like this:
PHP Code:
$dbobj->exeQuery($sql);

$this->username $dbobj->getQueryResult(0"username");
$this->password $dbobj->getQueryResult(0"user_pass");
$this->rank $dbobj->getQueryResult(0"rank"); 
Want me to implement it?
__________________
Tanax is offline  
Reply With Quote