Ejemplo n.º 1
0
<?php

require_once "clases/AccesoDatos.php";
require_once "clases/medico.php";
$arrayDemedicos = medico::TraerEstadistica();
//echo "<h2> Bienvenido: ". $_SESSION['registrado']."</h2>";
?>
 
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<table id="datatable">
    <thead>
        <tr>
            <th></th>
            <th>Turnos</th>
        </tr>
    </thead>
    <tbody>
<?php 
//' '.$rows["medico"]
foreach ($arrayDemedicos as $rows) {
    echo "<tr>\n\t\t\t<th>" . $rows["apellido"] . "</th>\n\t\t\t<td>" . $rows["cantidad"] . "</td>\n\t\t  </tr>  ";
}
?>
	</tbody>
</table>
<!--</div>-->

<script type="text/javascript">

$(function () {
    $('#container').highcharts({