asked on
$sql = <<<QUERY
SELECT
`s`.`session_id` AS ID,
DATE_FORMAT(
`s`.`session_date`,
"%W, %M, %d, %Y"
) AS `DATE`,
TIME_FORMAT(
CONCAT(`s`.`time_slot_id`, ":00:00"),
"%h:%i %p"
) AS `TIME`,
`s`.`session_type` AS `TYPE`,
`t`.`therapist_name` AS `THERAPIST`,
`sc`.`session_status` AS `STATUS`
FROM
tbl_session_client sc
LEFT JOIN tbl_session s
ON `s`.`session_id` = `sc`.`session_id`
LEFT JOIN `tbl_therapist` `t`
ON `t`.`therapist_id` = `s`.`therapist_id`
WHERE `sc`.`client_id` = :client_id
ORDER BY `session_date` DESC
QUERY;
The condition is:PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
Open in new window