[PHP] OO newb question....query results from a class

2003-02-11 Thread Cory Hicks
Hello! I am just getting going with OO stuff and I am stumped at how to pull out query results once it is part of a class. I am also using PEAR. Here is my code: class user { var $retval; function get_signin() { global $db_obj; $DateView = date(Y-m-d); $sql = SELECT

Re: [PHP] OO newb question....query results from a class

2003-02-11 Thread Chris Boget
$userinfo = new user(); echo $userinfo-get_signin(); It just returns Array? How do I, for lack of a better wordget to this array? Outside of a class it works great, I echo $rows['sign_in'] and it works. But this! Help! Many many thanks! Do this instead: $userArray =