Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/07/2008, 19:03
Avatar de vb2005
vb2005
 
Fecha de Ingreso: noviembre-2005
Ubicación: Paderborn - Alemania
Mensajes: 568
Antigüedad: 21 años
Puntos: 25
Respuesta: 'SELECT count(*) FROM `cliente`';

Cita:
Iniciado por Marvin Ver Mensaje
Por no leer bien me paso
Código PHP:
$sql = 'SELECT count(*) as conteo FROM cliente';
$rs1 = mysql_query($sql,$conn) or die('Error: '.mysql_error());
while(
$datos = mysql_fetch_array($rs1)){
      
$cant = $datos['conteo'];
} 
Suerte!
en un while? no es necesario, tiene solo una fila
__________________
www.marcher.com.uy - Web personal
Nerd's Corner - Desarrollo de software a medida