<!DOCTYPE html> <?php include 'inc/function.php'; $function = new Reads(); if (isset($_POST['empresa'])) { $par = trim($_POST['empresa']); $fun2 = $function->read_empresa_by_name($par); $fun = $function->contar_calificacion(strtoupper($par)); } ?> <html lang="es"> <head> <?php include 'inc/common_head.php'; ?> <style> .info-empresas{ margin-left: 0 !important; } .info-empresas h3{ margin-left: 124px !important; margin-bottom: 30px; } </style> </head> <body> <a href="index.php">Home</a><br> <a href="insert-entidad.php">Agregar entiedad</a><br> <a href="insert-categoria.php">Agregar Categoria</a> <div class="row formulario-ingreso">
<?php include 'function.php'; $mtd = new Reads(); $name = 'US'; $empresa = $mtd->read_all_empresas(); $categoria = $mtd->read_all_categories(); $calificacion = $mtd->read_all_califications(); $empresa_name = $mtd->read_empresa_by_name($name); $contar = $mtd->contar_calificacion($name); echo "<pre>"; print_r($empresa); echo "<br/>"; print_r($categoria); echo "<br/>"; print_r($calificacion); echo "<br/>"; print_r($empresa_name); echo "<br/>"; print_r($contar); echo "</pre>";