From 2a54a2a87a8def5b6ad77631ea0013540bf4b9c9 Mon Sep 17 00:00:00 2001 From: Gabriel Fuentes Date: Mon, 22 Apr 2019 20:21:15 -0500 Subject: [PATCH] carga con anio y busqueda por autor tambien ok --- .../f023e6c8-25c3-4908-9493-a5e68df73783.xml | 2 +- .../_src_/schema/portal_editorial.tE3KQQ.zip | Bin 6008 -> 6009 bytes .idea/workspace.xml | 81 ++++++++++++------ funciones/carga.php | 6 +- sql/conexion.php | 11 +-- 5 files changed, 65 insertions(+), 35 deletions(-) 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 d01badcdfdeefc085a4bb2ef50d3bf8c5e49b789..c55cc2f049ffb7c3e916bacef66920d6e7913327 100644 GIT binary patch delta 322 zcmeyN_ftosWDD=WK^5XCvcjngL$$ci~QtY0=7(IEI_8x+889nIhStT&~I8!uy$Kb58cc(;d80@Q(+#f46S<`)8;J%mm2m@^a+4Q{`Y?s@OfKY+o6IL>!gLeFl$snTX3pfx f3$#Uiay_r;bVKtToo!jxkC delta 288 zcmeyV_d`!Qz?+$civa{wrcd)L>ACss5s(eSs*@cVRVLc+3QPGz@)_pW=(G7RM|X<*_oRc#n8!*_?~ls zL_qo{U*s2KQe~W6CnN(jfon3qz-h+z$+rb!nM7G8-w}|X94TnSw1H*vSr(1S`vtw2 zLRo=KmC5=-zKr&hYlWUOMX&?)Do^edKEyPObFv?o^5g;$MyyPr za~Mk}w}@slhEDz<8q9bDNJ>wR7c*z_;RTu|KDmKcbn+1~Kc*iruHa-FadWm4e4qdU E0D9_N - - - + + + + @@ -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);