He aca el codigo de la actualizacion, siempre me da el error
Código PHP:
<?PHP
include("conectarse.php");
$id = $_POST['id'];
$serialemp=$_POST['serial1'];
$serial=$_POST['serial2'];
$descripcion=$_POST['descripcion'];
$proveedor=$_POST['proveedor'];
$ubicacion=$_POST['ubicacion'];
$ubicacion2=$_POST['ubicacion2'];
$factura=$_POST['factura'];
$cantidad=$_POST['cantidad'];
$precio=$_POST['precio'];
$adq_dia=$_POST['adq_dia'];
$adq_mes=$_POST['adq_mes'];
$adq_ano=$_POST['adq_ano'];
$gar_dia=$_POST['gar_dia'];
$gar_mes=$_POST['gar_mes'];
$gar_ano=$_POST['gar_ano'];
$estado=$_POST['estado'];
$ci_responsable=$_POST['ci_responsable'];
$nombre_responsable=$_POST['nombre_responsable'];
$ci_usuario=$_POST['ci_usuario'];
$nombre_usuario=$_POST['nombre_usuario'];
$comentario=$_POST['comentario'];
if ($adq_mes == "Ene")
$Mes = "01";
else if ($adq_mes == "Feb")
$Mes = "02";
else if ($adq_mes == "Mar")
$Mes = "03";
else if ($adq_mes == "Abr")
$Mes = "04";
else if ($adq_mes == "May")
$Mes = "05";
else if ($adq_mes == "Jun")
$Mes = "06";
else if ($adq_mes == "Jul")
$Mes = "07";
else if ($adq_mes == "Ago")
$Mes = "08";
else if ($adq_mes == "Sep")
$Mes = "09";
else if ($adq_mes == "Oct")
$Mes = "10";
else if ($adq_mes == "Nov")
$Mes = "11";
else if ($adq_mes == "Dic")
$Mes = "12";
$Fecha_adq = $adq_ano. "/" .$Mes. "/" .$adq_dia;
if ($gar_mes == "Ene")
$Mesg = "01";
else if ($gar_mes == "Feb")
$Mesg = "02";
else if ($gar_mes == "Mar")
$Mesg = "03";
else if ($gar_mes == "Abr")
$Mesg = "04";
else if ($gar_mes == "May")
$Mesg = "05";
else if ($gar_mes == "Jun")
$Mesg = "06";
else if ($gar_mes == "Jul")
$Mesg = "07";
else if ($gar_mes == "Ago")
$Mesg = "08";
else if ($gar_mes == "Sep")
$Mesg = "09";
else if ($gar_mes == "Oct")
$Mesg = "10";
else if ($gar_mes == "Nov")
$Mesg = "11";
else if ($gar_mes == "Dic")
$Mesg = "12";
$Fecha_gar = $gar_ano. "/" .$Mesg. "/" .$gar_dia;
$sql = "UPDATE `activos`.`activo` SET `serialemp` = '$serialemp',
`serial` = '$serial',
`descripcion` = '$descripcion',
`proveedor` = '$proveedor',
`ubicacion` = '$ubicacion',
`ubicacion2` = '$ubicacion2',
`factura` = '$factura',
`cantidad` = '$cantidad',
`precio` = '$precio',
`estado` = '$estado',
`ci_responsable` = '$ci_responsable',
`nombre_responsable` = '$nombre_responsable',
`ci_usuario` = '$ci_usuario',
`nombre_usuario` = '$nombre_usuario',
`comentario` = '$comentario',
`fecha_gar` = '$Fecha_gar'
`fecha_adq` = '$Fecha_adq',
WHERE CONVERT( `activo`.`serialemp` USING utf8 ) = '$id' LIMIT 1 ;
";
mysql_query($sql) or die ("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>Sistema de Inventario</title>
<style type='text/css'>
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #339900;
background-image: url(Fondo.jpg);
background-repeat: repeat-x;
}
-->
</style></head>
<body>
<p><strong>SERIAL EMPRESARIAL DEL ACTIVO FIJO YA EXISTE EN LA BASE DE DATOS</strong></p>
<p><strong>POR FAVOR INGRESE UNO NUEVO</strong>.</p>
<p><a href='Nuevo_Personal.html'></a>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='50' height='37' title='Regresar'>
<param name='BGCOLOR' value='#006600' />
<param name='movie' value='button16.swf' />
<param name='quality' value='high' />
<embed src='button16.swf' width='50' height='37' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' bgcolor='#006600' ></embed>
</object>
</p>
<p>Haga clic en el botón de arriba para regresar al Mantenimiento de Proveedores. </p>
</body>
</html>");
mysql_free_result($sql);
header("Location: mantenimiento_activo.php");
include("desconectarse.php");
?>