Código:
Me modifica todos los campos menos los de fecha. Me inserta 0000-00-00 en los dos campos. No se que es lo que sucede. Quien me pueda colaborar estare eternamente agradecido... // manejo de variables de fecha enviadas por el formulario
$f_inicio="$f_in_year-"."$f_in_mes-"."$f_in_dia";
$f_fin="$f_fin_year-"."$f_fin_mes-"."$f_fin_dia";
// fin de variables de fecha enviadas por el formulario
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE reg_event SET nit=%s, titulo=%s, descripcion=%s, Lugar=%s, entrada=%s, tipo1=%s, ciudad=%s, f_inicio=%s, f_fin=%s WHERE id=%s",
GetSQLValueString($_POST['nit'], "int"),
GetSQLValueString($_POST['titulo'], "text"),
GetSQLValueString($_POST['descripcion'], "text"),
GetSQLValueString($_POST['Lugar'], "text"),
GetSQLValueString($_POST['entrada'], "int"),
GetSQLValueString($_POST['tipo1'], "int"),
GetSQLValueString($_POST['ciudad'], "text"),
GetSQLValueString('$f_inicio', "date"), // insersion de fecha sin post
GetSQLValueString('$f_fin', "date"), // insersion de fecha sin post
GetSQLValueString($_POST['id'], "int"));

