I am trying to remove the daily doctor sessions from the priem table. The sample should be on a daily date, i.e. How many patients each doctor took each day:
$result2 = mysqli_query($con,"SELECT prdate, fio, doctor_uid, COUNT(*) FROM priem WHERE doctor_uid=$uidforfaq GROUP BY prdate"); Here prdate is the column with the date of admission, fio is the patient's full name, doctor_uid is the unique identifier of each doctor. based on the above request how to display the number of admission in numbers. Those. for example 2017-06-14 - 4 receptions, 2017-06-13 - 2 receptions.
prdate, fio, doctor_uidbyprdate, fio, doctor_uid, and not just by date. - Vismandate()function). And so the group byprdate, doctor_uidshould give the correct result. And fio except the list with the help of group_concat as in the comment above - Mike