I have a huge list of values that I need to count, the example is, I have 4000 barcodes and in those 4000, 2000 are marked in the without stock column with a yes .
Better explanations
In the total bar code count I use this code
<?php
$result=mysql_query("SELECT count(*) as total from n_emails");
$data=mysql_fetch_assoc($result);
echo "Total de emails ativos: ";
echo $data['total'];
echo "Total de emails inativos: ";
echo $data['total'];
?>
I would like to specify in this code the table count only for who is marked as yes in the column without stock ?
To help further, the structure of table
looks like this:
php
so that it counts only emails with an s in column < in> active .
Any light on how you could do this?