|
|
|
ไม่ทราบว่าจะทำยังไงให้ส่ง sms ให้อ่านเปนภาษาไทยได้ค่ะ |
|
|
|
|
|
|
|
ขอดู code หน่อยครับ
|
|
|
|
|
Date :
2010-04-23 09:42:52 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
if($_POST['status1']=='enter'){
$sql_data="select * from register where send='1' order by id";
$result_data=get_rsltset($sql_data);
$nr_data=count($result_data);
$user = "chiangmaizone";
$pass = "123";
$msg =$_POST[detail]; //"ทดสอบ ส่งข้อความ จาก $user ผ่านเว็บ"; echo iconv( ‘UTF-16′, ‘UTF-16′, “$detail”);
$mobilenum ="0810293885";
$customerid = "2";
$numsms=0;
for($i=0;$i<$nr_data;$i++){
$num=$i+1;
if($numsms >4){sleep(10);$numsms =0;}
$mobilenum1=$result_data[$i]['m_phone'];
$return = igensms($user,$pass,$mobilenum1,$msg,$customerid);
$numsms++;
//echo $return;
}
echo"<script language=\"JavaScript\">window.parent.uploadok2('ok');</script>";
exit;
}
?>
|
|
|
|
|
Date :
2010-04-23 10:16:24 |
By :
kam |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|