Hi all,
I log the date and time people log into my site, I was able to display this using this code
[CODE]<?php echo $qry[‘loginDateTime’]; ?>
, but I wanted to change the way the date and time were displayed so I added this
[CODE]<?php echo date(‘d/m/Y H:i:s’, strtotime($qry[‘loginDateTime’])); ?>
, that fixed the issue but now something wierd is happening. Not many members have logged in since I added the loginDateTime column in my db. So with the first code it just displayed nothing for members that haven’t logged and that is fine. But with the new code if they haven’t logged in it populates the field anyway with today’s date and a time of 00:00:00… Any ideas as to why this is happening?