Thank you very much for the help - now with the time thing
Im in California would like the time to display accordingly. I am currently using the CURTIME() function but not displaying the correct time.
This is the output:
USER [19:31:55 ] ----> should be 5:35pm
blah blah blah message
$sql = "select * from notes where notes_date='$mydate' order by notes_time desc";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "
<strong style='font-size: 11px;'>
$row[notes_user]</strong>
$row[notes_time]
<br/>".nl2br(stripslashes($row[notes_note]))."<br /><br />
";
}
mysql_free_result($result);
if ($mynotes && $user) {
if ($allowhtml == "0") {
$mynotes = str_replace("<", "<", "$mynotes");
$mynotes = str_replace(">", ">", "$mynotes");
}
if ($mydate && $todayonly == "0") {
$sql = "insert into notes (notes_date,notes_note,notes_time,notes_user) values ('$mydate','$mynotes',CURTIME(),'$user')";
} else {
$mydate = date("Y-m-d");
$sql = "insert into notes (notes_date,notes_note,notes_time,notes_user) values ('$mydate','$mynotes',CURTIME(),'$user')";
}