![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/05/2009, 11:12
|
![Avatar de ferbux](http://static.forosdelweb.com/customavatars/avatar180221_1.gif) | | | Fecha de Ingreso: mayo-2007 Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años, 9 meses Puntos: 6 | |
Respuesta: Quiero contar las filas, pero da error
Código:
<?php
include("includes/registrar.php");
$registros=mysql_query("SELECT COUNT(nombre)
from $tabla",$conexion) or
die("Problemas en el select:".mysql_error());
while ($reg=mysql_fetch_array($registros) ){
echo "$reg['nombre']";
}
mysql_close($conexion);
?>
Prueba así.
Saludos!!!
__________________ "Eres grande por que caminas entre gigantes" |