Código PHP:
$insertSQL = sprintf("INSERT INTO activo (serialemp, serial, descripcion, proveedor, ubicacion, area, factura, fecha_adq, fecha_gar, cantidad, precio, precio_total, estado, funciona, ci_responsable, nombre_responsable, ci_usuario, nombre_usuario, comentario) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($serialemp, "text"),
GetSQLValueString($_POST['serial'], "text"),
GetSQLValueString($_POST['descripcion'], "text"),
GetSQLValueString($_POST['proveedor'], "text"),
GetSQLValueString($_POST['ubicacion'], "text"),
GetSQLValueString($_POST['area'], "text"),
GetSQLValueString($_POST['factura'], "text"),
GetSQLValueString($_POST['fecha_adq'], "date"),
GetSQLValueString($_POST['fecha_gar'], "date"),
GetSQLValueString($_POST['cantidad'], "int"),
GetSQLValueString($_POST['precio'], "text"),
GetSQLValueString($_POST['precio_total'], "text"),
GetSQLValueString($_POST['estado'], "text"),
GetSQLValueString($_POST['funciona'], "text"),
GetSQLValueString($_POST['ci_responsable'], "text"),
GetSQLValueString($_POST['nombre_responsable'], "text"),
GetSQLValueString($_POST['ci_usuario'], "text"),
GetSQLValueString($_POST['nombre_usuario'], "text"),
GetSQLValueString($_POST['comentario'], "text"));
Este es el codigo con el cual guardo de forma local y revizando no tengo un script que me pida conexion y el unico que hay y q me pide tiene su conexion individual que es otro archivo de conexion pero funciona bn xq me muestra los datos pero este error es solo para agregar DATOS NUEVOS nada mas