Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var chart_months = [
- '<?=date("M y",strtotime("-6 months", $base))?>',
- '<?=date("M y",strtotime("-5 months", $base))?>',
- '<?=date("M y",strtotime("-4 months", $base))?>',
- '<?=date("M y",strtotime("-3 months", $base))?>',
- '<?=date("M y",strtotime("-2 months", $base))?>',
- '<?=date("M y",strtotime("-1 months", $base))?>',
- '<?=date("M y")?>'
- ];
- var chart_data = [
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-6 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-5 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-4 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-3 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-2 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y",strtotime("-1 Months"))."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>,
- <? list($nx)=mysql_fetch_row(mysql_query("select count(*) from v3_agents_clients where '".date("m-Y")."'=date_format(date,'%m-%Y') and agent_id='".(int)$_SESSION["agent_id"]."'"));echo $nx?>
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement