PDA

View Full Version : Adding HTML text to php code


sparklywater
08-11-2009, 12:59 AM
I have this code:

$userdateline = $user['date'] .' at '. $user['time'];

Which gives a result like '4th May 2009 at 4:15PM'

How exactly do I change this code to say 'Last visited on 4th May 2009 at 4:15PM' ?

Lynne
08-11-2009, 01:27 AM
You mean like this?
$userdateline = 'Last visitied at '. $user['date'] .' at '. $user['time'];

sparklywater
08-11-2009, 10:36 AM
Yes, thanks :)