Hi,
I am trying to loop through using php inorder to get the elements
$names= $names>GetResult; foreach ($names as &$name) { echo $name->ID; }
The above code gives me an error
Notice: Trying to get property of non-object
But if i try to access as below with the index number, it works.
foreach ($names as &$name) { echo $name[0]->ID; }
The problem with the above method is it will just give one, but i want to loop through and get all the contents.
I know its something really basic that i ma missing but would appreciate your help.
Many Thanks,
T