The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Retrieving data from database
#63
hmm...somehow it doesn't want to update the date of the validity column any more.
No idea why... It did before Sad

I'll try to fix that, your code will probably work then.

I have entered the date manually into the validity column of that user. It shows up in the form now...but no expiry date is displayed I'm afraid.

(01-22-2019, 02:12 PM)LBC Wrote: hmm...somehow it doesn't want to update the date of the validity column any more.
No idea why... It did before Sad

I'll try to fix that, your code will probably work then.

I have entered the date manually into the validity column of that user. It shows up in the form now...but no expiry date is displayed I'm afraid.

After removing the entire bit you posted on pastebin....I can update the validity column again. Isn't that weird?

It does work with the old code though. This one:

<?php
if($user->data()->membership == '5cc'){
$length = 6;
}elseif($user->data()->membership =='10cc'){
$length = 12;
}
if(isset($length)){
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));
}
?>

It just does not seem to work inside a label. Hah! Who knew! Tongue
  Reply


Messages In This Thread
Retrieving data from database - by LBC - 01-04-2019, 09:02 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:07 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:24 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:27 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:36 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:36 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:48 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:21 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:22 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:42 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:44 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:45 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 09:12 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:23 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 09:43 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:58 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:59 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:04 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:06 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:14 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:31 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:35 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:39 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:40 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:49 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:54 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 11:05 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 11:06 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 11:07 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 11:14 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 01:35 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 01:37 PM
RE: Retrieving data from database - by mudmin - 01-13-2019, 01:50 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 02:55 PM
RE: Retrieving data from database - by mudmin - 01-13-2019, 02:58 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 03:04 PM
RE: Retrieving data from database - by mudmin - 01-14-2019, 10:20 AM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:11 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:12 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:18 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:22 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:19 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:25 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:32 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:34 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:37 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:41 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:03 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:04 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:08 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:11 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:22 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:24 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:43 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:48 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:55 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 02:12 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 03:27 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 03:28 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 03:36 PM
RE: Retrieving data from database - by LBC - 03-26-2019, 08:00 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)