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
Display MySQL data
#5
i've dump my variable and also tested the $postID. Even if i don't use any variable and type the string myself, the database still don't update.

And, how can i get the max id of the table? the code below shows me nothing.

$getid = DB::getInstance()->query("SELECT MAX(id) FROM users");
$results = $getid->results();
$id = $results['MAX(id)'];
echo $id;
  Reply


Messages In This Thread
Display MySQL data - by kang08 - 08-07-2016, 05:21 AM
Display MySQL data - by mudmin - 08-11-2016, 09:42 PM
Display MySQL data - by kang08 - 08-12-2016, 10:19 AM
Display MySQL data - by mudmin - 08-12-2016, 11:25 PM
Display MySQL data - by kang08 - 08-13-2016, 07:45 AM
Display MySQL data - by mudmin - 08-14-2016, 12:01 PM
Display MySQL data - by mudmin - 08-18-2016, 02:16 PM
Display MySQL data - by picassoo - 08-22-2016, 10:10 AM
Display MySQL data - by mudmin - 08-22-2016, 01:32 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)