ufone Posted May 2, 2022 Share Posted May 2, 2022 Hi all, : I have php script like this which use to send sms. Now i want to send sms from outbox table. not 'NumberCsv in this out box table message is already saved. just use to send message. in outbox field sno,message,mobile,msg_status,mobile I have no idea ho to retrieve records from table... phone number and send message. Can any one help me. thanks a lot in advance. <?php ini_set("soap.wsdl_cache_enabled", 0); $url = 'http://cbs.zong.com.pk/ReachCWSv2/CorporateSmsV2.svc?wsdl'; $client = new SoapClient($url, array("trace" => 1, "exception" => 0)); $resultBulkSMS = $client->BulkSmsv2( array('objBulkSms' => array( 'LoginId'=> '', //here type your account name 'LoginPassword'=>'', //here type your password 'Mask'=>'KPS', //here set allowed mask against your account or you will get invalid mask 'Message'=>'Happy', 'UniCode'=>'0', 'CampaignName'=>uniqid(), // Any random name or type uniqid() to generate random number, you can also specify campaign name here if want to send no to any existing campaign, numberCSV parameter will be ignored 'CampaignDate'=>'5/02/2022 04:00:00 pm', // data from where sms will start sending, if not sure type current date in m/d/y hh:mm:ss tt format. 'ShortCodePrefered'=>'n', 'NumberCsv'=>'phone number' ))); echo "<pre>"; echo "<br>REQUEST:\n" . htmlentities($client->__getLastRequest()) . "\n"; print_r($resultBulkSMS); ?> Quote Link to comment https://forums.phpfreaks.com/topic/314753-send-sms-form-table-database/ Share on other sites More sharing options...
ginerjm Posted May 2, 2022 Share Posted May 2, 2022 Ok - perhaps you now realize that your post is very difficult to understand. And that code - please don't do that again. How about you just write down what you are trying to do and leave out the "code" part. Just use English and tell us what you want to do and why it is being hard to do. And when you do finally post code on this forum, use the <> icon above your post to place the code into its own window and post REAL code, not a print or an 'image' so that we can tinker with it ourselves while trying to help you. Quote Link to comment https://forums.phpfreaks.com/topic/314753-send-sms-form-table-database/#findComment-1595880 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.