Hey there I’m to sort out a php mysql message database with fields:
id, sms_text, receiver _number, time_sent, status.
I want to have a total count of that day (curdate) records of the number sms sent with number of successfully delivered and the number of failed. i.e. Total sms sent ____ , ______ delivered , ____failed
Howerver,
SELECT DATE(time_sent) AS date, SUM() AS total_sales
SELECT DATE(time_sent) AS date, SUM(status) AS total_sent from smsdb;
does not seem to sort it out.
Kindly, any one help?