I'd like to write a little snippet which lists all users on a certain page. My problem is: I can't get it to work properly. The database-query looks like this:
$data_members = $etomite->getIntTableRows(
$fields="fullname,email",
$from="user_attributes",
$where="role=2",
$sort="",
$dir="ASC",
$limit="",
$push=true);
This works really well, I'm able to display the array's content with return_r etc.
My problem is: I can't find a correct foreach-command to list the array's content. I've got no idea about the foreach-command. I tried to google it & implement things I read, but nothing really worked.
Could someone please post a correct way to get the fullname & the e-mail-address for every member listed? I think I can add the html-stuff for myself. But I just can't get the foreach (which needs a further foreach included I think) to work.
Sorry for this stupid question, but I really can't find a way to get this working.
Greetings,
Jayzon


This topic is locked








