display just appointments for this day or week

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
ceeronne
User
Posts: 22

display just appointments for this day or week

Post by ceeronne »

Is there a way to display in separate list just appointments for this day or week.
I have patients list in wich i edit date and time of next physical thepary and i need a separate page that diplays just apopintments for this day or week.


arbei
User
Posts: 9389

Post by arbei »

You may create a view based on the date field and generate scripts for that view, if you use MySQL, see the date functions: https://dev.mysql.com/doc/refman/8.0/en ... tions.html


ceeronne
User
Posts: 22

Post by ceeronne »

I have made a VIEW from my table PATIENTS to show list of patients with date row ascending but i want it to show just list of those who have apointment today or for this week or month


ceeronne
User
Posts: 22

Post by ceeronne »

I have maneged to do it my self with a little help of some previosu posts.
I have created VIEW from list that contains dates and set filter in table setup for that VIEW

"SUBSTR(XXX, 1, 10) = '".getToday()."'"

and i server events global code set

function getToday() {
$today = date("Y-m-d");
return $today;
}

and its working


Post Reply