How to get list of users by id and username?
Asked
Active
Viewed 5,642 times
1
-
1Have you look at http://stackoverflow.com/questions/12799933/print-all-users-joomla-2-5 ? – Rikesh Jan 07 '13 at 08:38
-
Sorry we can't give our hands :( – swapnesh Jan 07 '13 at 08:39
-
Thank you Rikesh, but i dont want get query, is there any function to get all users. for example i can get current user whit getUser(). – Mahtab Darvishi Jan 07 '13 at 08:47
-
There are no such function available to get all the list of users if you like to get it then you have create your own custom function or a plugin. – Toretto Jan 07 '13 at 10:15
1 Answers
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;
}
-
1you should credit the stackoverflow answer you copied your _answer_ from http://stackoverflow.com/a/12800557/2219831 – Ejaz Aug 22 '14 at 23:56