1

How to get list of users by id and username?

j0k
  • 22,600
  • 28
  • 79
  • 90

1 Answers1

1

I found this result from Print All Users - Joomla 2.5

$db =& JFactory::getDBO();
$query = "SELECT * FROM #__users" ;
$db->setQuery($query);

$rows = $db->loadObjectList();
foreach ($rows as $row) {
  echo $row->id.'|'.$row->username.'|'.$row->email;
}
Community
  • 1
  • 1
chaitanya
  • 352
  • 4
  • 14
  • 1
    you should credit the stackoverflow answer you copied your _answer_ from http://stackoverflow.com/a/12800557/2219831 – Ejaz Aug 22 '14 at 23:56