function __construct() { require_once "../inc/Conection.php"; $conection = new Conection(); $this->con = $conection->Conection(); }
<?php session_start(); if (isset($_SESSION['log_usu']['autenticado']) && $_SESSION['log_usu']['autenticado']) { require "cabecera.php"; require "menu.php"; require_once "../inc/Conection.php"; //Conexion con Base de Datos $conn = new Conection(); $link = $conn->Conection(); $otorgante = $_POST["txtOtorgante"]; $sql = "SELECT indices.codIndice,CONCAT(Notario.nom_not,' ',Notario.mat_not,' ',Notario.pat_not) AS notario,indices.otorgante,indices.favorecido,indices.fecha,indices.subserie,indices.folio,indices.escritura,indices.bien \r\n\tFROM indices INNER JOIN Notario ON indices.codNotario=Notario.codNotario WHERE indices.otorgante LIKE '%{$otorgante}%'"; $result = $link->query($sql); $total = $result->num_rows; ?> <div class="container"> <div class="row"> <div class="col-md-12"> <center><h3>Lista de Índices por Otorgantes</h3></center> <?php echo "<h4>Número de Índices Encontrados: {$total} Índices</h4> "; ?> <table class="table table-striped table-bordered table-condensed" > <thead> <tr> <th>Número</th> <th>Nombre Notario</th>