mqnoy

proses php

Apr 23rd, 2014
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. if (ISSET($_POST['send_bulk']))
  2. {
  3. //if($_POST['konf']=="" OR $_POST['destination']=="" OR $_POST['body_msg']=="")
  4. if (empty($_POST['konf']) OR (empty($_POST['destination']))OR (empty($_POST['body_msg'])))
  5. {
  6. echo"<script>alert('please complete blank field');window.history.back(-1);</script>";
  7. }else{
  8. $nm_group=$_POST['destination'];
  9. //echo "$act_msg<br/>";
  10. //echo "$msg_kon<br/>";
  11. //echo "$nm_group<br/>";
  12.             $sms=$_POST['body_msg'];
  13.             //$msg_kon=$_POST['konf'];
  14.             //echo "$msg_kon<br/>";
  15.  
  16.                             $sql2=mysql_query("SELECT * FROM pbk WHERE GroupID='$nm_group'");
  17.                             while ($row=mysql_fetch_array($sql2))
  18.             {
  19.             $nohp = $row['Number'];
  20.             $Gname = $row['Name']; 
  21.                            
  22.             //echo $row['Number'];
  23.     echo "Sms terkirim $Gname nomor : " .$nohp. " <br/> ";
  24.  
  25.                             $query3 = "INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID, class) VALUES ('$nohp', '$sms', 'Gammu 1.25.0', 0)";
  26.                             //mysql_query($query3);
  27.                             $result_Bulk=mysql_query($query3);
  28.                             }
  29.                         if(empty($result_Bulk)){
  30.                        
  31.                         echo "NOT COMPLATE";   
  32.                         }else{echo "DONE";}                        
  33.  
  34. }}
Advertisement
Add Comment
Please, Sign In to add comment