I am using the scheduler with php/mysql table.
How can I set the event colors based on the “SELECT” query that has a field called “color” in it?
My select is something like this:
$scheduler->render_sql("SELECT * from events_rec LEFT JOIN appt_types ON appt_types.ID=events_rec.appt_type WHERE office_ID IN ($office_id) AND appt_status IN ($appt_progress) AND saw_by IN ($provider) AND company_ID = '" . addslashes($_SESSION['Company_ID']) . "'","event_id","start_date,end_date,text,rec_type,event_pid,event_length,office_ID,reason,patient_ID,name,howheard_ID,promo_ID,company_ID,appt_status,saw_by, appt_color");
So when the events load, the color is based on the appt_color field in the query. Thanks.