Commit ff0a98f047b27ac16b0dd605d5365ded18bc903e

Authored by Edmar Moretti
1 parent 01091b10

Correção na string de conexão

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
classesphp/funcoes_gerais.php
@@ -2821,9 +2821,10 @@ Retorno: @@ -2821,9 +2821,10 @@ Retorno:
2821 Array originada de fetchAll 2821 Array originada de fetchAll
2822 */ 2822 */
2823 function pegaDadosAdminKey($sql,$subsEsquema){ 2823 function pegaDadosAdminKey($sql,$subsEsquema){
  2824 + //pegaDadosAdminKey("select codigo_tema,link_tema from __esq__i3geoadmin_temas","__esq__");
2824 $resultado = array(); 2825 $resultado = array();
2825 include(dirname(__FILE__)."/../admin/php/conexao.php"); 2826 include(dirname(__FILE__)."/../admin/php/conexao.php");
2826 - $sql = str_replace($subsEsquema,$conexaoadmin,$sql); 2827 + $sql = str_replace($subsEsquema,$esquemaadmin,$sql);
2827 error_reporting(0); 2828 error_reporting(0);
2828 $q = $dbh->query($sql,PDO::FETCH_ASSOC); 2829 $q = $dbh->query($sql,PDO::FETCH_ASSOC);
2829 if($q){ 2830 if($q){