Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/02/2016, 23:25
rodocoyote15
 
Fecha de Ingreso: diciembre-2015
Mensajes: 529
Antigüedad: 8 años, 4 meses
Puntos: 39
Respuesta: Query "count"

Con PHP imprimes el valor.
Con SQL LO INVOCAS.

SQL, SQL!. Por algo en php se llama "mysqli_query".

Código SQL:
Ver original
  1. SELECT COUNT(id) AS total FROM tabla WHERE en_venta = 1;