Hey, i have a query class to help tidy up my databse work. one of the methods ive made is called array2vars(), which is used for when a row is returned, and i cant be bothered to keep referencing the values through the array.. like so...
instead of going..
print "name: ". $query->row['name'];
print "occupation: ". $query->row['occupation'];
etc etc..
i can just use...
print "name: ".$query->name;
print "occupation: ".$query-> occupation;
cos it just makes things a bit quicker when i have a large array to get through. my question is, is there any way to get the variables outside of the object, so that ultimately i could just use...
print "name: ".$name;
print "occupation: ".$occupation;
thanks in advance
Rich