Need help formating how the time displays
current display ---- guest [18:27:31]
code -----------------
<strong style='font-size: 11px;'>$row[notes_user]</strong> [".substr("$row[notes_time]", -12)";
I want to be able to dispaly time in PST.
Use the [man]date[/man] function
hth
notes_time --- is coming from MySQL --> with a "TIME" type
$result = mysql_query($sql); while ($row=mysql_fetch_array($result)) { echo " $row[notes_date]<br> <strong style='font-size: 11px;'> $row[notes_user]</strong> [".substr("$row[notes_time]", -7)."] <br/>".nl2br(stripslashes($row[notes_note]))."<br /><br /> "; }
But if you read the manual section on [man]date[/man] function you would see it also handles time formats