Snipets

enctype="multipart/form-data"
update la_tabla_que_sea set fecha=if ('".$_POST['campo_fecha_web']."'!='',str_to_date('".$_POST['campo_fecha_web']."','%d/%m/%Y'),null) where id=id_necesario_para_actualizar