Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "koneksi/koneksi.php";
- $id_group = $_POST['status'];
- $isi_pesan = $_POST['isi_pesan'];
- $sql = mysql_query("SELECT hp FROM tbl_penerima WHERE status IN('".implode("','",$id_group)."')");
- while ($data = mysql_fetch_array($sql)){
- $hp = $data[hp];
- $kirim = mysql_query("insert into outbox (InsertIntoDB,SendingDateTime,DestinationNumber,Coding,TextDecoded,SendingTimeOut,DeliveryReport,CreatorID)
- values(sysdate(),sysdate(),'$hp','Default_No_Compression','$isi_pesan',sysdate(),'yes','system')");
- }
- if ($kirim){
- echo "<h4> Pesan berhasil dikirim </h4>";
- echo "<meta http-equiv='refresh' content='1; url=sms_groupstatus.php'>";
- }
- else {
- echo "<h4> Gagal dikirim </h4>";
- echo "<meta http-equiv='refresh' content='1; url=sms_groupstatus.php'>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement