Thanks for responding...
heres an example
if i input 123456 it is successfully stored in the database as 12:34:56
However if i input 12:34:56 (the format MySQL should be expecting) i get an error
'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':34:56 WHERE noteid = 43' at line 1'
it happens on insert and on update. I have no problems with the date.
the SQL statement i am executing for update is
$UpdateSQL1 = sprintf("UPDATE notes SET note_date = %s, note_time = %s WHERE noteid = %s",
GetSQLValueString($_POST['note_date'], "date"),
GetSQLValueString($_POST['note_time'], "time"),
GetSQLValueString($noteid_selectNotes, "int"));
The field note_time is a time type
ideally i want to be able to enter 12:34 i dont need to enter seconds
Thanks