Looked all over for the answer to this but can't find it. Maybe I'm
searching for the wrong thing. I'm new to using classes in PHP.
Whenever I try and reference the member's ($line) properties or
functions I either get blank for properties or "Call to a member
function on a non-object" for functions. I'm sure I'm doing something
incorrectly with the assignment.
function LineGroup($clas sarray)
{
$groupout = "";
while ($line = each($classarra y))
{
$groupout .= "<tr><td>".$lin e -> GetCat1Desc()." </td></tr>";
}
return $groupout;
}
also even when I try the following the same problem occurs
function LineGroup($clas sarray)
{
$groupout = "";
$groupout .= "<tr><td>".$cla ssarray[0] ->
GetCat1Desc()." </td></tr>";
return $groupout;
}
Any help would be greatly appreciated.
Thanks, Cory
searching for the wrong thing. I'm new to using classes in PHP.
Whenever I try and reference the member's ($line) properties or
functions I either get blank for properties or "Call to a member
function on a non-object" for functions. I'm sure I'm doing something
incorrectly with the assignment.
function LineGroup($clas sarray)
{
$groupout = "";
while ($line = each($classarra y))
{
$groupout .= "<tr><td>".$lin e -> GetCat1Desc()." </td></tr>";
}
return $groupout;
}
also even when I try the following the same problem occurs
function LineGroup($clas sarray)
{
$groupout = "";
$groupout .= "<tr><td>".$cla ssarray[0] ->
GetCat1Desc()." </td></tr>";
return $groupout;
}
Any help would be greatly appreciated.
Thanks, Cory
Comment