Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ISSET($_POST['send_bulk']))
- {
- //if($_POST['konf']=="" OR $_POST['destination']=="" OR $_POST['body_msg']=="")
- if (empty($_POST['konf']) OR (empty($_POST['destination']))OR (empty($_POST['body_msg'])))
- {
- echo"<script>alert('please complete blank field');window.history.back(-1);</script>";
- }else{
- $nm_group=$_POST['destination'];
- //echo "$act_msg<br/>";
- //echo "$msg_kon<br/>";
- //echo "$nm_group<br/>";
- $sms=$_POST['body_msg'];
- //$msg_kon=$_POST['konf'];
- //echo "$msg_kon<br/>";
- $sql2=mysql_query("SELECT * FROM pbk WHERE GroupID='$nm_group'");
- while ($row=mysql_fetch_array($sql2))
- {
- $nohp = $row['Number'];
- $Gname = $row['Name'];
- //echo $row['Number'];
- echo "Sms terkirim $Gname nomor : " .$nohp. " <br/> ";
- $query3 = "INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID, class) VALUES ('$nohp', '$sms', 'Gammu 1.25.0', 0)";
- //mysql_query($query3);
- $result_Bulk=mysql_query($query3);
- }
- if(empty($result_Bulk)){
- echo "NOT COMPLATE";
- }else{echo "DONE";}
- }}
Advertisement
Add Comment
Please, Sign In to add comment