Hi all,
I want to get a mysql_fetch_object result and associate it to a class.
This is basically what i want to be able to do :
class myclass {
// properties identical to table columns
var $col1;
var $col2;
var $col3;
function method1() {
...
}
function method2() {
...
}
}
...
while ($myobject=mysql_fetch_object(...)) {
$myobject->method1();
$myobject->method2();
}
My problem is that i dont know where to specify that $myobject has to be a myclass instance.
Any help appreciated
Tittom