
January 4th, 2000, 03:27 PM
|
|
Registered User
|
|
Join Date: Dec 1999
Location: Rochester, NY, United States
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I made a wrapper class for MySQL ....
class MySQL {
var $ptrResult;
function Query($Query) {
$this->ptrResult = MYSQL_QUERY($Query);
}
function Result($Index, $Field) {
return MYSQL_RESULT($this->ptrResult, $Index, $Field)
}
}
for some reason no matter what I do $this->ptrResult is always 0 is there a flaw in my class or what? I verified my $Query value and it gives back the correct information it's just that when I try this it won't work
.. there are other functions in the class but those are the one's that don't work.... er the result pointer never gets set for some reason....
------------------
Q: What kind of person is worth becoming?
A: The person you are now.
|