All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by austin.rock9 » Tue Feb 10, 2009 2:11 pm
Hi in the user stats for OUTBOUND CALLS i want comments of particular leads and province of that lead in that list. How can i get that..I got the below query :
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
How can i link vicidial_list to get comment and province from it.
Thanks
-
austin.rock9
-
- Posts: 146
- Joined: Mon Jun 12, 2006 4:11 pm
by mflorell » Tue Feb 10, 2009 10:43 pm
Well, you don't want to select * then, pick the fields you want from vicidial_log and then add the fields you want from vicidial_list and put "vicidial_list.lead_id=vicidial_log.lead_id" after the where clause.
Take a look at the AST_VDsales_export.pl script for more ideas on this.
-
mflorell
- Site Admin
-
- Posts: 18406
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
Return to Support
Who is online
Users browsing this forum: No registered users and 87 guests