Here is the code:
$row[notes_user [".substr("$row[notes_time]", -8)."]
Here is the output: ---> guest [19:24:05]
I need it to show guest [5:30pm]
THANK YOU
if the data is coming from a mysql database, I'd recommend to do both date arithmetic and formatting right within your query rather than mess around with something like converting into timestamp, subtracting 8*3600 seconds and converting it back.
check the examples for DATE_SUB and DATE_FORMAT here: http://www.mysql.com/doc/en/Date_and_time_functions.html