Yes the details are stored like that in my database:
01/05/2007
So I just need to count them, I thought that code should pick them up
I've tried this:
$directory = "SELECT * FROM directory WHERE date between '01/05/2007' AND '31/05/2007'";
$directoryResults = mysql_query($directory);
while ($directoryRow = mysql_fetch_array ($directoryResults)){
$paid = $directoryRow["subscription"];
$date= $directoryRow["date"];
IF ($paid=='PAID'){
$countpaid++;}
But $countpaid =5 for some reason
I've also tried what i showed you above in the same format, doesn't make sense that i'm getting 5 as the value when only 2 of the values appear between the two dates. I think it's counting just the paid ones, not taking the date into account.
It seems to be counting all the dates not the ones between the values