Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ed49c518
authored
2010-12-15 20:46:15 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
new query
1 parent
6f77dcf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
com/UserManager/UserManager.php
com/UserManager/UserManager.php
View file @
ed49c51
...
...
@@ -95,7 +95,16 @@ function get_users($role = null, $pagenum=1, $records_per_page=0, $return_count_
$search_text
ORDER BY last_name ASC, first_name ASC
"
;
/* cB Query:
SELECT u.ID, u.user_login,
CONCAT('{', GROUP_CONCAT(CONCAT('"', m.meta_key, '"', ':', '"', m.meta_value, '"')), '}') AS meta_data
, (SELECT meta_value FROM wp_usermeta as mt where meta_key = 'last_name' and mt.user_id = u.ID) AS ln
FROM wp_users as u left join wp_usermeta as m on u.ID = m.user_id where m.meta_key IN ('first_name', 'last_name') group by u.ID order by ln;
$array = jseon_decode($meta_data);
*/
if
(
$records_per_page
>
0
)
{
$limit
=
" LIMIT "
.
(
(
$pagenum
-
1
)
*
$records_per_page
)
.
",
$records_per_page
"
;
}
else
{
...
...
Please
register
or
sign in
to post a comment