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
Trouble with DB results
#2
It's been a little while since I've used the count method, so I had to confirm. I put a method in the db class that does this for you. You can do something like this.

Code:
$query = $db->query("SELECT * from users");
Code:
$count = $db->count();
Code:
echo $count;

You can also see that kind of coding in action at the top of the admin panel. I hope that helps.
  Reply


Messages In This Thread
Trouble with DB results - by Nolan - 06-14-2016, 08:16 PM
Trouble with DB results - by mudmin - 06-15-2016, 12:27 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)