Jump to content

Recommended Posts

  • Moderators
Posted

For date joined, inside the foreach loop add a table row like this:

<tr><td>Date Joined:</td></tr>
.
.
.
.
<tr><td><?php echo $pilot->joindate ;?></td></tr>

For the last arrival location inside foreach loop:

<?php
$pid = $pilot->pilotid;
$sql = "SELECT * FROM phpvms_pireps WHERE pilotid = '$pid' ORDER BY submitdate DESC";
$pirep = DB::get_row($sql);
?>
<tr><td>Last Location:</td></tr>
.
.
.
.
<tr><td><?php echo $pirep->arricao ;?></td></tr>

Posted

Alright, great. Btw when I use that to call the Join date, it also shows the time.

and if I change the code to

<?php echo date(DATE_FORMAT, $pilot->joindate) ;?>

It shows me 31/12/1969. (I'm sorry I am not good with php)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...