'900663950', 'text'=>$update, 'parse_mode'=>'html'); $telegram->sendMessage($content); mysqli_query($conn, $update); mysqli_query($conn, $update_1); $date = date('d-m-Y H:i:s'); if($get_prod_det['contry']=="India"){ echo '

Payment received for your order No. '.$get_prod_det['refid'].' on '.$date.'
Your Order will be delivered within 7 days, courier details sms will be sent to you after 4 days.
If you cancelled the order within 5 days. 5% will be deducted, balance amount will be refunded after 7 days only.

உங்கள் '.$get_prod_det['refid'].' ஆர்டருக்கான பணம் '.$date.' பெறப்பட்டது.
உங்கள் ஆர்டர் 7 நாட்களுக்குள் டெலிவரி செய்யப்படும்,கூரியர் விவரங்கள் 4 நாட்களுக்குப் பிறகு உங்களுக்கு SMS அனுப்பப்படும்.
* 5 நாட்களுக்குள் ஆர்டரை ரத்து செய்தால். 5% கழிக்கப்படும், மீதி தொகை 7 நாட்களுக்குப் பிறகு திருப்பித் தரப்படும்.

'; }else{ echo '

Payment received for your order No. '.$get_prod_det['refid'].'
Your order will delivered within 21 days,
We will send the shipping details after 10 days.
If you cancelled the order after 24 hours Rs. 1000 will be deducted, balance amount will be refunded after 14 days only.

உங்கள் '.$get_prod_det['refid'].' ஆர்டருக்கான பணம் பெறப்பட்டது..
உங்கள் ஆர்டர் 21 நாட்களுக்குள் டெலிவரி செய்யப்படும்,10 நாட்களுக்குப் பிறகு கூரியர் விவரங்களை அனுப்புவோம்.
24 மணிநேரத்திற்குப் பிறகு ஆர்டரை ரத்துசெய்தால் ரூ. 1000 கழிக்கப்படும், மீதமுள்ள தொகை 14 நாட்களுக்குப் பிறகு மட்டுமே திருப்பித் தரப்படும்.

'; } //send details to mobile number; $message = "Hi ".$get_prod_det['dif_name']." Your Order ".$get_prod_det['refid']." confirmed. Once dispatched you will get courier details by SMS. Check order status on our website. ANBUDR"; //enter Your Message $message = urlencode($message); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'http://sms.dial4sms.com/api/v2/SendSMS?SenderId=ANBUDR&Message='.$message.'&MobileNumbers='.$get_prod_det['dif_phone'].'&ApiKey=eYfIWFmiAMhbL6JDTfOb3kzGzQr+eimy6prshuD8qLo=&ClientId=b45d4e3d-cb26-4856-8cbf-93a02a7b9eeb', 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', )); $response = curl_exec($curl); curl_close($curl); function fetch_user($conn, $order, $phone){ $user_id="0"; $get_user = mysqli_query($conn, "select DISTINCT(user_id) AS user_id from tbl_order where orderid='$order'"); $check_rows = mysqli_num_rows($get_user); if($check_rows > 0){ $set_user = mysqli_fetch_array($get_user, MYSQLI_ASSOC); if($set_user['user_id'] != 0 && $set_user['user_id'] != ''){ $user_id = $set_user['user_id']; }else{ $get_conf = mysqli_query($conn, "select * from shop_user where phone='$phone' order by user_id desc limit 1"); $check_rows1 = mysqli_num_rows($get_conf); if($check_rows1 > 0){ $set_conf = mysqli_fetch_array($get_conf, MYSQLI_ASSOC); mysqli_query($conn, "update tbl_order set user_id='".$set_conf['user_id']."' where orderid='$order'"); $user_id = $set_conf['user_id']; }else{ $user_id = 0; } } }else{ $user_id = 0; } return $user_id; } ?>