SQL Insert with UNIX_TIMESTAMP
Ok, I hope someone can help. Here's my dilemma.
I want to use a INSERT INTO statement into a MySQL table that needs the following information.
A Start date (Unix timestamp)
A Start time (Unix timestamp)
A End time (Unix timestamp)
I have no idea how to convert this into a series of INSERT statements.
I already tried INSERT INTO <table> VALUES (UNIX_TIMESTAMP('04/04/2003')
This works but as no time in included in the date string, I get the wrong value.
The whole purpose of this is to take 3 strings (above) from a VB form and write a INSERT statement that I can then load in PHP which will fill the table entries properly.
Please help. I would like an example based on Date : 04/04/2003, starttime 12:00, Endtime 17:00
Regards,
Mega.