@@ -449,13 +478,6 @@
-
-
-
-
-
-
-
@@ -463,13 +485,6 @@
-
-
-
-
-
-
-
@@ -591,10 +606,24 @@
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
diff --git a/funciones/carga.php b/funciones/carga.php
index 2de8ab3..f00b241 100644
--- a/funciones/carga.php
+++ b/funciones/carga.php
@@ -1,10 +1,10 @@
query($sentencia);
if (!$ejecutar) {
echo "
Error: " . $conexion->errorInfo(). "
";
@@ -105,7 +105,7 @@ if(isset($_POST["enviar"])){
//echo "entea";
$resultado = insertar_datos($csv[$i][0],$csv[$i][1],$csv[$i][2],
$csv[$i][3],$csv[$i][4],$csv[$i][5],
- $csv[$i][6],$csv[$i][7],$csv[$i][8],$csv[$i][9],$csv[$i][10]);
+ $csv[$i][6],$csv[$i][7],$csv[$i][8],$csv[$i][9],$csv[$i][10],$csv[$i][10]);
/*print_r($resultado);
echo "
";
print_r($i);
diff --git a/sql/conexion.php b/sql/conexion.php
index b43c741..01e3bb8 100644
--- a/sql/conexion.php
+++ b/sql/conexion.php
@@ -3,12 +3,12 @@
* local
*
+$host = 'localhost';
+$user = 'blender';
+$pass = 'avatares1';
+$dbname = 'portal_editorial';
+$dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
- $host = 'localhost';
- $user = 'blender';
- $pass = 'avatares1';
- $dbname = 'portal_editorial';
- $dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
*/
$host = '132.248.80.194';
$user = 'portal_editorial';
@@ -16,6 +16,7 @@ $pass = 'p0rt4l';
$dbname = 'P_orion_Portal_editorial';
$dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
+
try{
$conexion = new PDO($dsn,$user,$pass);