amigos tengo este codigo donde muestro un listado de todos los registrados pero ocurre que quiero saber cuantos ahi en total y que me los muestre al final, si alguien puede ayudarme se lo agradeceria:
<?php
/* Incluimos el fichero de conexión
a la base de datos mysql */
include("conexion.php");
?>
<table width="884" border="1" cellspacing="2" cellpadding="2">
<!--DWLayoutTable-->
<tr>
<td height="25"><div align="center" class="Estilo1">SAI</div></td>
<td><div align="center" class="Estilo1">APELLIDOS</div></td>
<td><div align="center" class="Estilo1">NOMBRES</div></td>
<td><div align="center" class="Estilo1">CARNET</div></td>
<td width="116" valign="top"><div align="center" class="Estilo1">LUGAR CARNET</div></td>
<td width="180" valign="top"><div align="center" class="Estilo1">AREA</div></td>
<td width="207" valign="top"><div align="center" class="Estilo1">CARGO</div></td>
</tr>
<?php
$link=Conectarse();
$sql = "select sai, apellidos, nombres, codigo, dpto, area, cargo from empleados where cirun=cirun order by apellidos";
$result = mysql_query($sql, $link);
if ($row = mysql_fetch_array($result)){
mysql_field_seek($result,0);
while ($field = mysql_fetch_field($result)){
} do {
?>
<tr>
<td height="25"><?php echo $row[0]; ?></td>
<td><?php echo $row[1]; ?></td>
<td><?php echo $row[2]; ?></td>
<td><?php echo $row[3]; ?></td>
<td valign="top"><?php echo $row[4]; ?></td>
<td valign="top"><?php echo $row[5]; ?></td>
<td valign="top"><?php echo $row[6]; ?></td>
</tr>
<?php
} while ($row = mysql_fetch_array($result));
} else {
/*
Si no se encontraron resultados
se muestra el siguiente mensaje
*/
echo "No se encontraron resultados!";
}
?>
</table>
<body>
<form action="" method="get">
<input type="button" name="imprimir" value="Imprimir" onClick="window.print();"/>
</form>
</body>