The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status Update 004
#11
I got bored so here you go....

-admin.php
-admin_user.php
-join.php
-user_settings.php
-forgot_password_reset.php
-/includes/header.php
-/views/join.php

Your SQL:
http://pasted.co/1d6fd962

You can download the files here:
http://aircentralized.com/us4alphadump.zip
  Reply
#12
@Mudmin

Thoughts on modifying the fetch all users class to order by first name, last name?

ID is useful...but painful in most circumstances!

Thank you
  Reply
#13
I would modify the function to take an optional order-by column so current functionality is unchanged.
  Reply
#14
I like that idea ^
  Reply
#15
Ok. I made two optional arguments. OrderBy and True.

Basically you can call

Code:
$bob = fetchAllUsers("logins"); dump($bob);
To order by logins Ascending

or

Code:
$bob = fetchAllUsers("logins",TRUE); dump($bob);
To order by logins descending.

Here's the code. I'm pushing it to 4.3 if no one has any modifications.

https://pastebin.com/MLLEh16E
  Reply
#16
You are awesome! Thanks for putting this together!
  Reply
#17
No modifications for me - and you're welcome Smile
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)