- Posts: 21
- Thank you received: 0
$jobquery = "SELECT users.name, users.email, job.title, job.sendemail FROM ".$db->nameQuote('#__users') ."AS users, ".$db->nameQuote('#__js_job_jobs') ." AS job
WHERE users.id = job.uid AND job.id = ".$jobid;
$jobquery = "SELECT company.contactname AS name, company.contactemail AS email, job.title, job.sendemail
FROM ".$db->nameQuote('#__js_job_companies') ."AS comapney
JOIN ".$db->nameQuote('#__js_job_jobs') ." AS job ON job.companyid = company.id
WHERE job.id = ".$jobid;