blasterstudios
Technical User
i have a query setup that works, but now i want to pull info for just record based on value "id" in $_GET. how do i do it?
Code:
$jobid = $_GET['id'];
$query_getcurrentjob = "SELECT
fox_clients.code AS code,
fox_jobs.jobid AS jobid,
fox_clients.name AS client,
fox_users_employee.firstname AS employee,
fox_users_originator.firstname AS originator,
fox_jobs.duedate,
fox_status.status AS status,
fox_priorities.prioritylevel AS priority,
fox_types.type AS jobtype
FROM
fox_jobs,
fox_clients,
fox_users AS fox_users_employee,
fox_users AS fox_users_originator,
fox_status,
fox_priorities,
fox_types
WHERE
fox_jobs.jobid = 'jobid',
fox_clients.clientid = fox_jobs.client AND
fox_users_employee.userid = fox_jobs.employee AND
fox_users_originator.userid = fox_jobs.originator AND
fox_status.statusid = fox_jobs.status AND
fox_priorities.priorityid = fox_jobs.priority AND
fox_types.typeid = fox_jobs.jobtype AND
fox_jobs.status <= 2
ORDER BY fox_jobs.duedate ASC, fox_jobs.priority DESC";