2
I have a huge list of values that I need to count, the example is, I have 4000 barcodes and those 4000, 2000 are marked in the column out of stock with a yes.
Better explanations
In total barcode counting 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'];
?>
Could I specify in this code the table count only for those who are marked as yes in the column out of stock?
To help further, the structure of the table
is like this:
I’m trying to is to modify the query that is in php
just so you can tell emails who are with a s in the column active.
Some light on how I could do that?