I am calling my class "myclass" and then calling the function "myfirst". At the end of the function I am trying to get the results to be returned to my public variables above. I saw where this was implimented before. I am having trouble figure out why its not working this time around. thanks in advance.
Code:class myclass { public $w_id; public $w_first_name; function myfirst(){ $ret = queryf("SELECT * FROM wildcats WHERE w_email_address = %s", '?@hotmail.com'); $row = mysql_fetch_assoc($ret); return $row = new myclass($row); } function s(){ echo $w_id; } }







Bookmarks