
[2025-12-30 Tue 02:59:19] : *********************** START **************************
[2025-12-30 Tue 02:59:19] : select id, status_code from status_code where status='Active'
[2025-12-30 Tue 02:59:19] : Status Code Result: 2
[2025-12-30 Tue 02:59:19] : select id, app_store, app_name, app_url from app_info where scheduler_status='Active' and status='Active'
[2025-12-30 Tue 02:59:19] : App Info Result: 4
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Batch ID: 2025-12-30 02:59:19#Google Play Store#AppInfoId_11#AppName_City Touch
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Misc Test: 2025-12-30 02:59:19#Google Play Store#AppInfoId_11#AppName_City Touch --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 02:59:19] : APP_VERSION
[2025-12-30 Tue 02:59:19] : 9.0.0
[2025-12-30 Tue 02:59:19] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (11,2,'9.0.0','2025-12-30 02:59:19#Google Play Store#AppInfoId_11#AppName_City Touch','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:19] : 1
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Misc Test: 2025-12-30 02:59:19#Google Play Store#AppInfoId_11#AppName_City Touch --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 02:59:19] : APP_LAST_UPDATE
[2025-12-30 Tue 02:59:19] : 2025-10-31
[2025-12-30 Tue 02:59:19] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (11,5,'2025-10-31','2025-12-30 02:59:19#Google Play Store#AppInfoId_11#AppName_City Touch','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:19] : 1
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Batch ID: 2025-12-30 02:59:19#Google Play Store#AppInfoId_12#AppName_City Corp
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Misc Test: 2025-12-30 02:59:19#Google Play Store#AppInfoId_12#AppName_City Corp --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 02:59:19] : APP_VERSION
[2025-12-30 Tue 02:59:19] : 
[2025-12-30 Tue 02:59:19] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (12,2,'','2025-12-30 02:59:19#Google Play Store#AppInfoId_12#AppName_City Corp','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:19] : 1
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:19] : Misc Test: 2025-12-30 02:59:19#Google Play Store#AppInfoId_12#AppName_City Corp --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 02:59:19] : APP_LAST_UPDATE
[2025-12-30 Tue 02:59:20] : 2025-11-12
[2025-12-30 Tue 02:59:20] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (12,5,'2025-11-12','2025-12-30 02:59:19#Google Play Store#AppInfoId_12#AppName_City Corp','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:20] : 1
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Batch ID: 2025-12-30 02:59:19#Apple I Store#AppInfoId_16#AppName_City Touch
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Misc Test: 2025-12-30 02:59:19#Apple I Store#AppInfoId_16#AppName_City Touch --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 02:59:20] : APP_VERSION
[2025-12-30 Tue 02:59:20] : 
[2025-12-30 Tue 02:59:20] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (16,2,'','2025-12-30 02:59:19#Apple I Store#AppInfoId_16#AppName_City Touch','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:20] : 1
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Misc Test: 2025-12-30 02:59:19#Apple I Store#AppInfoId_16#AppName_City Touch --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 02:59:20] : APP_LAST_UPDATE
[2025-12-30 Tue 02:59:20] : --00
[2025-12-30 Tue 02:59:20] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (16,5,'--00','2025-12-30 02:59:19#Apple I Store#AppInfoId_16#AppName_City Touch','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:20] : 1
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Batch ID: 2025-12-30 02:59:19#Apple I Store#AppInfoId_17#AppName_City Corp
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Misc Test: 2025-12-30 02:59:19#Apple I Store#AppInfoId_17#AppName_City Corp --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 02:59:20] : APP_VERSION
[2025-12-30 Tue 02:59:20] : 
[2025-12-30 Tue 02:59:20] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (17,2,'','2025-12-30 02:59:19#Apple I Store#AppInfoId_17#AppName_City Corp','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:20] : 1
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Misc Test: 2025-12-30 02:59:19#Apple I Store#AppInfoId_17#AppName_City Corp --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 02:59:20] : APP_LAST_UPDATE
[2025-12-30 Tue 02:59:20] : --00
[2025-12-30 Tue 02:59:20] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (17,5,'--00','2025-12-30 02:59:19#Apple I Store#AppInfoId_17#AppName_City Corp','2025-12-30','2025-12-30 02:59:19','2025-12-30 02:59:19','get-app-info.php')
[2025-12-30 Tue 02:59:20] : 1
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 02:59:20] : Connection closed
[2025-12-30 Tue 02:59:20] : ************************ END ***************************
[2025-12-30 Tue 02:59:27] : *********************** START Data Parsing Error Checker**************************
[2025-12-30 Tue 02:59:27] : SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.batch_id, 
ais.executed_at_bd_time AS timestamp_bd, ais.executed_at_server_time AS timestamp_server 
FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-30'
ORDER BY ai.`app_store`, ai.`app_name`, sc.`status_code`, ais.`executed_at_bd_time` DESC
[2025-12-30 Tue 02:59:27] : Total Record Fetch: 8
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Corp -->Apple I Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->--00<br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Corp -->Apple I Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Touch -->Apple I Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->--00<br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Touch -->Apple I Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Corp -->Google Play Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->2025-11-12<br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Corp -->Google Play Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Touch -->Google Play Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->2025-10-31<br />
[2025-12-30 Tue 02:59:27] : 2025-12-30 02:59:19 -->City Touch -->Google Play Store -->City Bank PLC -->APP_VERSION -->App Version -->9.0.0<br />
[2025-12-30 Tue 02:59:27] : Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Failed to connect to server Additional SMTP info: php_network_getaddresses: getaddrinfo failed: Name or service not known
[2025-12-30 Tue 02:59:27] : Connection closed
[2025-12-30 Tue 02:59:27] : ************************ END ***************************
[2025-12-30 Tue 02:59:31] : *********************** START Data Parsing Error Checker**************************
[2025-12-30 Tue 02:59:34] : *********************** START Send Deviation Alert**************************
[2025-12-30 Tue 02:59:34] : SELECT DISTINCT t1.*,t2.*  FROM 
				(
				SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.`executed_date` AS date_bd
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-30'
				) t1
				LEFT OUTER JOIN
				(
				SELECT ai.id AS id_1, ai.app_name AS app_name_1, ai.app_store AS app_store_1, ai.app_org AS app_org_1, sc.status_code AS status_code_1,
				 sc.status_code_desc AS status_code_desc_1, ais.status_value AS status_value_1
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-29'
				) t2 ON t1.id=t2.id_1 and t1.status_code=t2.status_code_1
				ORDER BY t1.`app_store`, t1.`app_name`, t1.`status_code`, t1.`date_bd` DESC
[2025-12-30 Tue 02:59:34] : Total Record Fetch: 8
[2025-12-30 Tue 02:59:34] : <table width="200" border="1" cellspacing="0" cellpadding="0" style="border: 1px solid #000;font-family: Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', 'serif';font-size: 14px;">
  <tbody style="border: 1px solid #000;">
    <tr>
      <th style="width: 30px">SL</th>
      <th style="width: 180px">App Store</th>
      <th style="width: 300px">App Name</th>
	  <th style="width: 225px">App Organization</th>
	  <th style="width: 160px">App Status Type</th>
	  <th style="width: 140px">Status Value as on <span style="background-color: #00FFFF">2025-12-30</span></th>
	  <th style="width: 140px">Status Value as on <span style="background-color: #FFA500">2025-12-29</span></th>
	  <th style="width: 160px">Deviation Status</th>
    </tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">1</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">City Corp</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">--00</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">--00</td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">2</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">City Corp</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">3</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">City Touch</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">--00</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">--00</td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">4</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">City Touch</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">5</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">City Corp</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">2025-11-12</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">2025-11-12</td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">6</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">City Corp</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto;background-color: #0F0"></td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">7</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">City Touch</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">2025-10-31</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">2025-10-31</td><td style="border: 1px solid #000;width: auto">Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">8</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">City Touch</td><td style="border: 1px solid #000;width: auto">City Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">9.0.0</td><td style="border: 1px solid #000;width: auto;background-color: #0F0">9.0.0</td><td style="border: 1px solid #000;width: auto">Matched</td></tr></tbody></table>
[2025-12-30 Tue 02:59:34] : Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Failed to connect to server
[2025-12-30 Tue 02:59:34] : Connection closed
[2025-12-30 Tue 02:59:34] : ************************ END ***************************
[2025-12-30 Tue 02:59:36] : *********************** START Send Deviation Alert**************************
[2025-12-30 Tue 02:59:36] : SELECT DISTINCT t1.*,t2.*  FROM 
				(
				SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.`executed_date` AS date_bd
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-30'
				) t1
				LEFT OUTER JOIN
				(
				SELECT ai.id AS id_1, ai.app_name AS app_name_1, ai.app_store AS app_store_1, ai.app_org AS app_org_1, sc.status_code AS status_code_1,
				 sc.status_code_desc AS status_code_desc_1, ais.status_value AS status_value_1
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-29'
				) t2 ON t1.id=t2.id_1 and t1.status_code=t2.status_code_1
				ORDER BY t1.`app_store`, t1.`app_name`, t1.`status_code`, t1.`date_bd` DESC
[2025-12-30 Tue 02:59:36] : Total Record Fetch: 8
[2025-12-30 Tue 02:59:36] : <h1 style="color:green">No Mismatch Found!!!</h1>
[2025-12-30 Tue 02:59:36] : Mail sent on 2025-12-30 02:59:36
[2025-12-30 Tue 02:59:36] : Connection closed
[2025-12-30 Tue 02:59:36] : ************************ END ***************************
[2025-12-30 Tue 02:59:38] : *********************** START Data Parsing Error Checker**************************
[2025-12-30 Tue 02:59:38] : SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.batch_id, 
ais.executed_at_bd_time AS timestamp_bd, ais.executed_at_server_time AS timestamp_server 
FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-30'
ORDER BY ai.`app_store`, ai.`app_name`, sc.`status_code`, ais.`executed_at_bd_time` DESC
[2025-12-30 Tue 02:59:38] : Total Record Fetch: 8
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Corp -->Apple I Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->--00<br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Corp -->Apple I Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Touch -->Apple I Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->--00<br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Touch -->Apple I Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Corp -->Google Play Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->2025-11-12<br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Corp -->Google Play Store -->City Bank PLC -->APP_VERSION -->App Version --><br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Touch -->Google Play Store -->City Bank PLC -->APP_LAST_UPDATE -->App Last Update Date -->2025-10-31<br />
[2025-12-30 Tue 02:59:38] : 2025-12-30 02:59:19 -->City Touch -->Google Play Store -->City Bank PLC -->APP_VERSION -->App Version -->9.0.0<br />
[2025-12-30 Tue 02:59:38] : Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Failed to connect to server Additional SMTP info: php_network_getaddresses: getaddrinfo failed: Name or service not known
[2025-12-30 Tue 02:59:38] : Connection closed
[2025-12-30 Tue 02:59:38] : ************************ END ***************************
[2025-12-30 Tue 05:00:05] : *********************** START **************************
[2025-12-30 Tue 05:00:05] : select id, status_code from status_code where status='Active'
[2025-12-30 Tue 05:00:05] : Status Code Result: 2
[2025-12-30 Tue 05:00:05] : select id, app_store, app_name, app_url from app_info where scheduler_status='Active' and status='Active'
[2025-12-30 Tue 05:00:05] : App Info Result: 4
[2025-12-30 Tue 05:00:05] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:05] : Batch ID: 2025-12-30 05:00:05#Google Play Store#AppInfoId_11#AppName_City Touch
[2025-12-30 Tue 05:00:05] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:05] : Misc Test: 2025-12-30 05:00:05#Google Play Store#AppInfoId_11#AppName_City Touch --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 05:00:05] : APP_VERSION
[2025-12-30 Tue 05:00:05] : 9.0.0
[2025-12-30 Tue 05:00:05] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (11,2,'9.0.0','2025-12-30 05:00:05#Google Play Store#AppInfoId_11#AppName_City Touch','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:05] : 1
[2025-12-30 Tue 05:00:05] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:05] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:05] : Misc Test: 2025-12-30 05:00:05#Google Play Store#AppInfoId_11#AppName_City Touch --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 05:00:05] : APP_LAST_UPDATE
[2025-12-30 Tue 05:00:06] : 2025-10-31
[2025-12-30 Tue 05:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (11,5,'2025-10-31','2025-12-30 05:00:05#Google Play Store#AppInfoId_11#AppName_City Touch','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:06] : 1
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Batch ID: 2025-12-30 05:00:05#Google Play Store#AppInfoId_12#AppName_City Corp
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Misc Test: 2025-12-30 05:00:05#Google Play Store#AppInfoId_12#AppName_City Corp --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 05:00:06] : APP_VERSION
[2025-12-30 Tue 05:00:06] : 
[2025-12-30 Tue 05:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (12,2,'','2025-12-30 05:00:05#Google Play Store#AppInfoId_12#AppName_City Corp','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:06] : 1
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Misc Test: 2025-12-30 05:00:05#Google Play Store#AppInfoId_12#AppName_City Corp --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 05:00:06] : APP_LAST_UPDATE
[2025-12-30 Tue 05:00:06] : 2025-11-12
[2025-12-30 Tue 05:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (12,5,'2025-11-12','2025-12-30 05:00:05#Google Play Store#AppInfoId_12#AppName_City Corp','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:06] : 1
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Batch ID: 2025-12-30 05:00:05#Apple I Store#AppInfoId_16#AppName_City Touch
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Misc Test: 2025-12-30 05:00:05#Apple I Store#AppInfoId_16#AppName_City Touch --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 05:00:06] : APP_VERSION
[2025-12-30 Tue 05:00:06] : 
[2025-12-30 Tue 05:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (16,2,'','2025-12-30 05:00:05#Apple I Store#AppInfoId_16#AppName_City Touch','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:06] : 1
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Misc Test: 2025-12-30 05:00:05#Apple I Store#AppInfoId_16#AppName_City Touch --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 05:00:06] : APP_LAST_UPDATE
[2025-12-30 Tue 05:00:06] : --00
[2025-12-30 Tue 05:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (16,5,'--00','2025-12-30 05:00:05#Apple I Store#AppInfoId_16#AppName_City Touch','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:06] : 1
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Batch ID: 2025-12-30 05:00:05#Apple I Store#AppInfoId_17#AppName_City Corp
[2025-12-30 Tue 05:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:06] : Misc Test: 2025-12-30 05:00:05#Apple I Store#AppInfoId_17#AppName_City Corp --> APP_VERSION --> 2 --> get-app-info.php
[2025-12-30 Tue 05:00:06] : APP_VERSION
[2025-12-30 Tue 05:00:07] : 
[2025-12-30 Tue 05:00:07] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (17,2,'','2025-12-30 05:00:05#Apple I Store#AppInfoId_17#AppName_City Corp','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:07] : 1
[2025-12-30 Tue 05:00:07] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:07] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:07] : Misc Test: 2025-12-30 05:00:05#Apple I Store#AppInfoId_17#AppName_City Corp --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2025-12-30 Tue 05:00:07] : APP_LAST_UPDATE
[2025-12-30 Tue 05:00:07] : --00
[2025-12-30 Tue 05:00:07] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (17,5,'--00','2025-12-30 05:00:05#Apple I Store#AppInfoId_17#AppName_City Corp','2025-12-30','2025-12-30 05:00:05','2025-12-29 23:00:05','get-app-info.php')
[2025-12-30 Tue 05:00:07] : 1
[2025-12-30 Tue 05:00:07] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:07] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2025-12-30 Tue 05:00:07] : Connection closed
[2025-12-30 Tue 05:00:07] : ************************ END ***************************
[2025-12-30 Tue 07:00:04] : *********************** START Send Deviation Alert**************************
[2025-12-30 Tue 07:00:04] : SELECT DISTINCT t1.*,t2.*  FROM 
				(
				SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.`executed_date` AS date_bd
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-30'
				) t1
				LEFT OUTER JOIN
				(
				SELECT ai.id AS id_1, ai.app_name AS app_name_1, ai.app_store AS app_store_1, ai.app_org AS app_org_1, sc.status_code AS status_code_1,
				 sc.status_code_desc AS status_code_desc_1, ais.status_value AS status_value_1
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2025-12-29'
				) t2 ON t1.id=t2.id_1 and t1.status_code=t2.status_code_1
				ORDER BY t1.`app_store`, t1.`app_name`, t1.`status_code`, t1.`date_bd` DESC
[2025-12-30 Tue 07:00:04] : Total Record Fetch: 8
[2025-12-30 Tue 07:00:04] : <h1 style="color:green">No Mismatch Found!!!</h1>
[2025-12-30 Tue 07:00:05] : Mail sent on 2025-12-30 07:00:04
[2025-12-30 Tue 07:00:05] : Connection closed
[2025-12-30 Tue 07:00:05] : ************************ END ***************************