I have created a dashboard as per: http://xataface.com/wiki/Creating_a_Dashboard
How to I include a relatively complex sql query into df_get_records_array in the actions/dashboard.php?
My query is this:
- Code: Select all
SELECT `tbl_job`.`job_id`, LEFT(CONCAT(`tbl_job`.`job_id`,' - ',`tbl_organisation`.`org_name`,' - ',`tbl_job`.`job_description`),80) as jobdescription FROM `tbl_job`STRAIGHT_JOIN `tbl_organisation` ON `tbl_job`.`org_id` = `tbl_organisation`.`org_id`WHERE job_status < 6 ORDER BY `tbl_job`.`job_id` DESC
Tried various ways... but none work...
Many thanks, Tom