[smoothoperator] r4194 committed - Change order

0 views
Skip to first unread message

smootho...@googlecode.com

unread,
Apr 15, 2013, 2:13:52 PM4/15/13
to smootho...@googlegroups.com
Revision: 4194
Author: ma...@venturevoip.com
Date: Mon Apr 15 11:13:37 2013
Log: Change order
http://code.google.com/p/smoothoperator/source/detail?r=4194

Modified:
/SmoothOperatorCRM/script_results.php

=======================================
--- /SmoothOperatorCRM/script_results.php Mon Apr 15 11:10:08 2013
+++ /SmoothOperatorCRM/script_results.php Mon Apr 15 11:13:37 2013
@@ -70,7 +70,7 @@
if (isset($_GET['show_lead'])) {
$sql = "SELECT script_entries.statement, script_results.*,
customers.*, users.username, users.id, customers.id as customer_id,
script_entries.type FROM script_entries, script_results, customers, users
where date(question_datetime) between ".sanitize($_POST['from_date'])."
and ".sanitize($_POST['to_date'])." and script_results.job_id
= ".sanitize($_POST['job'])." and script_results.customer_id = customers.id
and script_results.user_id = users.id and script_entries.script_id =
script_results.script_id and script_entries.order =
script_results.question_number and customers.id
= ".sanitize($_GET['customer_id']);
} else {
- $sql = "SELECT script_entries.statement, script_results.*,
customers.*, users.username, users.id, customers.id as customer_id,
script_entries.type, job_dispositions.text FROM script_entries,
script_results, customers, users, customer_dispositions, job_dispositions
where date(question_datetime) between ".sanitize($_POST['from_date'])."
and ".sanitize($_POST['to_date'])." and script_results.job_id
= ".sanitize($_POST['job'])." and script_results.customer_id = customers.id
and script_results.user_id = users.id and script_entries.script_id =
script_results.script_id and script_entries.order =
script_results.question_number and
customer_dispositions.`customer_id`=customers.id and job_dispositions.id =
disposition";
+ $sql = "SELECT script_entries.statement, script_results.*,
job_dispositions.text as disposition, customers.*, users.username,
users.id, customers.id as customer_id, script_entries.type FROM
script_entries, script_results, customers, users, customer_dispositions,
job_dispositions where date(question_datetime)
between ".sanitize($_POST['from_date'])."
and ".sanitize($_POST['to_date'])." and script_results.job_id
= ".sanitize($_POST['job'])." and script_results.customer_id = customers.id
and script_results.user_id = users.id and script_entries.script_id =
script_results.script_id and script_entries.order =
script_results.question_number and
customer_dispositions.`customer_id`=customers.id and job_dispositions.id =
disposition";
}
$result = mysqli_query($connection, $sql) or
die(mysqli_error($connection));
//echo $sql;
Reply all
Reply to author
Forward
0 new messages