public function Show($tabla, $args = "", $select = "") { $stringRetorno = null; $ctrlSer = new CControladorSerializable("u220754411_sisub"); $this->ComprobarFiltros(); $resultado = $ctrlSer->ConsultaPersonalizada("SELECT * FROM " . $tabla . " " . $args . $this->filtro . " " . $this->orden . " " . $this->campo . " " . $this->forma . " " . $select . ";"); $stringRetorno = $this->GenerarCabeceraTabla($resultado->fetch_array(MYSQLI_ASSOC)); while ($row = $resultado->fetch_array(MYSQLI_ASSOC)) { $stringRetorno .= "<tr>"; foreach ($row as $val) { $stringRetorno .= "<td>" . $val . "</td>"; } $stringRetorno .= "</tr>"; } $stringRetorno .= "</tbody>" . "</table>"; return $stringRetorno; }
public function __construct($db) { parent::__construct($db); }
public function __construct($db, $pass = "") { parent::__construct($db); }