*

Osclass2024

  • **
  • 15 posts
How to show a list of registered users
« on: March 25, 2024, 02:37:55 PM »
Hello, how can I show a list of registered users, username, name, e-mail, phone, and items, address, contry, etc. from the user table?

thanks

*

MB Themes

Re: How to show a list of registered users
« Reply #1 on: March 29, 2024, 01:20:40 PM »
Use User::newInstance()->listAll() to get them into variable
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on April 05, 2024, 03:18:44 PM
*

Osclass2024

  • **
  • 15 posts
Re: How to show a list of registered users
« Reply #2 on: April 03, 2024, 08:18:06 PM »
thank,

the code complete for list username and email is:


Code: [Select]
<?php 
$usuarios 
User::newInstance()->listAll();

foreach (
$usuarios as $usuario) {
echo 
$usuario['s_name'] . ' ' $usuario['s_email']. '<br>' ;
}
?>

*

MB Themes

Re: How to show a list of registered users
« Reply #3 on: April 05, 2024, 03:18:41 PM »
Looks correct ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Osclass2024

  • **
  • 15 posts
Re: How to show a list of registered users
« Reply #4 on: April 10, 2024, 02:22:30 PM »
MB Themes, thanks for your contributions

greetings