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
$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 =
2 matches
Mail list logo