Still having problems. It may have to do with the complexity of my sql but i need to find a solution.
This code:
[quote]if(@$_GET["id"])
$strWhereClause=whereAdd($strWhereClause,"job.id = ".$_GET["id"]);
Produced this error:
Error description You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AS totals ON `totals`.`job` = `job`.`id` where job.id = 105' at line 1
URL www.automatedroofing.com/sales241/Jobs_list.php?id=105
Error file /home/automate/public_html/sales241/include/dbconnection.php
Error line 26
SQL query select `job`.`id`, `job`.`id` as id2, `job`.`job_name`, `job`.`status`, `job`.`cus_id`, `job`.`sr_id`, `job`.`cnv_id`, `job`.`pm_id`, `job`.`evaluator_id`, `job`.`sale_date`, concat(`job`.`addr1`,' ',`job`.`addr2`,' ', `job`.`city`,' ',`job`.`state`,' ',`job`.`zip`) as location, `job`.`addr1`, `job`.`addr2`, `job`.`city`, `job`.`state`, `job`.`zip`, `job`.`discount`, `job`.`ins_name`, `job`.`ins_phone`, `job`.`ins_fax`, `job`.`ins_email`, `job`.`ins_adjuster`, `job`.`ins_policy_num`, `job`.`ins_claim_num`, `job`.`notes`, `job`.`assign_sr`, `job`.`assign_evaluator`, `job`.`assign_sm`, `job`.`assign_acct`, `job`.`high`, `job`.`stories`, `job`.`steep`, `job`.`bad_access`, `job`.`roof_pitch`, `job`.`shingle_manufacturer`, `job`.`shingle_prod`, `job`.`shingle_color`, `job`.`shingle_type`, CONCAT_WS(', ' , `customer`.`lastName` , `customer`.`firstName` , `customer`.`phone_main` , `customer
and this code:
if(@$_GET["job_name"])
$strWhereClause=whereAdd($strWhereClause,"job.job_name = ".$_GET["job_name"]);
Produced this error:
Error description Unknown column 'CO08' in 'where clause'
URL www.automatedroofing.com/sales241/Jobs_list.php?job_name=CO08-1101
Error file /home/automate/public_html/sales241/include/dbconnection.php
Error line 26
SQL query select `job`.`id`, `job`.`id` as id2, `job`.`job_name`, `job`.`status`, `job`.`cus_id`, `job`.`sr_id`, `job`.`cnv_id`, `job`.`pm_id`, `job`.`evaluator_id`, `job`.`sale_date`, concat(`job`.`addr1`,' ',`job`.`addr2`,' ', `job`.`city`,' ',`job`.`state`,' ',`job`.`zip`) as location, `job`.`addr1`, `job`.`addr2`, `job`.`city`, `job`.`state`, `job`.`zip`, `job`.`discount`, `job`.`ins_name`, `job`.`ins_phone`, `job`.`ins_fax`, `job`.`ins_email`, `job`.`ins_adjuster`, `job`.`ins_policy_num`, `job`.`ins_claim_num`, `job`.`notes`, `job`.`assign_sr`, `job`.`assign_evaluator`, `job`.`assign_sm`, `job`.`assign_acct`, `job`.`high`, `job`.`stories`, `job`.`steep`, `job`.`bad_access`, `job`.`roof_pitch`, `job`.`shingle_manufacturer`, `job`.`shingle_prod`, `job`.`shingle_color`, `job`.`shingle_type`, CONCAT_WS(', ' , `customer`.`lastName` , `customer`.`firstName` , `customer`.`phone_main` , `customer