'https://crm11.techlounge.co.in/api/check-whatsapp-link-cid.php?cid='.$_GET['cid'].'', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); echo $response = curl_exec($curl); curl_close($curl); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://crm2.techlounge.co.in/api/check-whatsapp-link-cid.php?cid='.$_GET['cid'].'', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); echo $response = curl_exec($curl); curl_close($curl); if ($response == 'Link Expired') { ?> query($sql_select_cid); if ($result_select_cid) { $row_select_cid = $result_select_cid->fetch_assoc(); $form_name = $row_select_cid['form_name']; $sql_select_form = 'SELECT * FROM '.$row_select_cid["table_name"].' WHERE id = "'.$row_select_cid['uid'].'"'; $result_select_form = $conn->query($sql_select_form); if ($result_select_form) { $row_select_form = $result_select_form->fetch_assoc(); $form_fields = array($form_data)[0][$form_name]['form_fields']; //echo $row_select_form['office_state']; //echo $row_select_form['office_district']; ?>