diff --git a/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783.xml b/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783.xml index 2fa2f35..8ae4095 100644 --- a/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783.xml +++ b/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783.xml @@ -1225,7 +1225,7 @@ 7 varchar(150)|0s - + 8 varchar(10)|0s diff --git a/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783/storage_v2/_src_/schema/portal_editorial.tE3KQQ.zip b/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783/storage_v2/_src_/schema/portal_editorial.tE3KQQ.zip index d01badc..c55cc2f 100644 Binary files a/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783/storage_v2/_src_/schema/portal_editorial.tE3KQQ.zip and b/.idea/dataSources/f023e6c8-25c3-4908-9493-a5e68df73783/storage_v2/_src_/schema/portal_editorial.tE3KQQ.zip differ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index fa714f4..cacd261 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,10 @@ - - - + + + + @@ -220,6 +239,16 @@ + + + + + + + + + + @@ -321,12 +350,12 @@ - + - @@ -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);