|
|
@@ -103,7 +103,6 @@ class Conexion_Mysql {
|
|
103
|
103
|
$sqlValues .= "$valor,";
|
|
104
|
104
|
}
|
|
105
|
105
|
elseif (substr_count(MYSQL_TYPES_DATE, "$tipo_col ")) {
|
|
106
|
|
- echo "<h2>$valor | $tipo_col</h2>";
|
|
107
|
106
|
$valor = $this->formatearFecha($valor, $tipo_col); // formatea las fechas
|
|
108
|
107
|
|
|
109
|
108
|
$sqlValues .= "'$valor',";
|
|
|
@@ -117,8 +116,7 @@ class Conexion_Mysql {
|
|
117
|
116
|
$sqlValues = rtrim($sqlValues, ',').')';
|
|
118
|
117
|
|
|
119
|
118
|
// inserta los valores en la DB
|
|
120
|
|
- $sql = "INSERT INTO $tabla $cols VALUES $sqlValues";
|
|
121
|
|
- echo $sql;
|
|
|
119
|
+ $sql = "INSERT INTO $tabla $cols VALUES $sqlValues";
|
|
122
|
120
|
return $this->ejecutarConsulta($sql);
|
|
123
|
121
|
}
|
|
124
|
122
|
|
|
|
@@ -210,7 +208,6 @@ class Conexion_Mysql {
|
|
210
|
208
|
$valor = date("Y-m-d H:i:s",strtotime($valor));
|
|
211
|
209
|
}
|
|
212
|
210
|
}
|
|
213
|
|
- echo "<h4>($valor)</h4>";
|
|
214
|
211
|
return $valor;
|
|
215
|
212
|
/* if (gettype($valor) == 'string') $valor = strtotime($valor);
|
|
216
|
213
|
return date('Y-m-d H:i:s', $valor);
|