Guest User

Untitled

a guest
Jul 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. error_log('['.__FILE__.']['.__LINE__."] check");
  2.  
  3. $table = new metrics_sessions();
  4.  
  5. //here I print out the SQL statement that will eventually be executed
  6. error_log('['.__FILE__.']['.__LINE__."] check: "."guider_slug=? ".($effective_mindate!=null?" and date>'".$effective_mindate."'":"").($effective_maxdate!=null?" and date<'".$effective_maxdate." 23:59:59'":"").($effective_version!=0 && $effective_version!="all"?" and version=".$specific_version:"").($effective_campaign!==null && $effective_campaign!="all" ?" and campaign='".$effective_campaign."'":"")." order by date");
  7.  
  8. // BELOW IS THE LAST LINE I SEE IN PHP ERROR
  9. error_log('['.__FILE__.']['.__LINE__."] check");
  10.  
  11. try {
  12.  
  13. $sessions = $table->Find("guider_slug=? ".($effective_mindate!=null?" and date>'".$effective_mindate."'":"").($effective_maxdate!=null?" and date<'".$effective_maxdate." 23:59:59'":"").($effective_version!=0 && $effective_version!="all"?" and version=".$specific_version:"").($effective_campaign!==null && $effective_campaign!="all" ?" and campaign='".$effective_campaign."'":"")." order by date",array($param_gslug));
  14.  
  15. error_log('['.__FILE__.']['.__LINE__."] check");
  16.  
  17. }catch(Exception $e){
  18.  
  19. error_log('['.__FILE__.']['.__LINE__."] check");
  20. error_log('Caught exception: '.$e->getMessage());
  21. error_log('File: '.$e->getFile());
  22. error_log('Line: '.$e->getLine());
  23. error_log('Trace: '.$e->getTraceAsString());
  24.  
  25. }
  26.  
  27. error_log('['.__FILE__.']['.__LINE__."] session count: ".count($sessions));
Add Comment
Please, Sign In to add comment