Mkay. Lets start here:
PHP Code:
if($_POST['content']== 'October-4-2012-1700'){
Is this of any particular meaning? The actual input value you have there in a string is a GNU compatible datetime format. Because it is, we can now convert that easily using DateTime or strtotime handling. This will be beneficial assuming that you don't want to write a conditional branch for each day and time block.
So what is it you're actually updating? Like a database? If so we need a structure for this.