I have my database set out like so,
The expiration fields are where the server time + one month are place and the Unl fields are where 1 or 0 is stored.
This is what I have so far,
<?php
include "config.php";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("Database does not exist!");
$result1 = mysql_query("SELECT * FROM $tbl_name WHERE fletchUnl = '1'");
$num_rows1 = mysql_num_rows($result1);
$result2 = mysql_query("SELECT * FROM $tbl_name WHERE plankUnl = '1'");
$num_rows2 = mysql_num_rows($result2);
$num_rows = $num_rows1 + $num_rows2;
echo $num_rows;
?>
This counts the unlimited auths but not the monthly ones.