@puppyshad Somehow the code I used and the code I published were different. Let's just say I'm doing too much and my head is spinning.
I just tried this on 7.3.5 and it works fine:
--------------------------------
// —- Code Begin
global $site;
global $aPreValues;
global $p_arr;
$Memb = (int)$p_arr['ID'];
$arr = db_arr("SELECT `DateLastLogin` FROM `Profiles` WHERE `ID` = '$Memb'");
$DbDate = $arr['DateLastLogin'];
$LastLogDate = date("d m Y", strtotime($DbDate));
{echo "<br> My Last Visit Was On The: $LastLogDate<br><br>";}
$arr = db_arr("SELECT `Views` FROM `Profiles` WHERE `ID` = '$Memb'");
$MemViews = $arr['Views'];
if ( $MemViews > 0 )
{echo " $MemViews Members Have Viewed My Profile<br><br>";}
// — Code End
-----------------------------
I'll replace the PDF as soon as I can and thanks for pointing out the problem.
Regards and good luck.