當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sms::getbalance方法代碼示例

本文整理匯總了PHP中sms::getbalance方法的典型用法代碼示例。如果您正苦於以下問題:PHP sms::getbalance方法的具體用法?PHP sms::getbalance怎麽用?PHP sms::getbalance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sms的用法示例。


在下文中一共展示了sms::getbalance方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: sms

 $db->query("select SmsCredits, id from Members where UserName='" . $auth->auth["uname"] . "'");
 if ($db->next_record()) {
     $Credits = $db->f(0);
     $MemberID = $db->f(1);
 } else {
     $Credits = 0;
     echo "Can't find how many credits you have left. - Program Error please tell webmaster@nass.com.au";
     page_close();
     exit;
 }
 $OkCount = 0;
 if ($Credits > $MsgCount || !$perm->have_perm("guest")) {
     $mysms = new sms();
     $Date = substr($db->f(0), 0, 8);
     $Time = substr($db->f(0), 8, 6);
     $startBalance = $mysms->getbalance();
     foreach ($SendTo as $Recipient) {
         $db->query("select * from SmsAddressBook where id='" . $Recipient . "'");
         if ($db->next_record()) {
             $name = $db->f("Name");
             $cc = $db->f("CountryCode");
             $ac = $db->f("AreaCode");
             $num = $db->f("Number");
             printf("<br>Sending Nokia RTTTL SMS to %s, +%s %s %s ", $name, $cc, $ac, $num);
             $number = $cc . $ac . $num;
             $output = $mysms->send($number, 'RTTTL', $RingTone);
             $UN = $auth->auth["uname"];
             printf($output);
             $trk = $mysms->trackingNo;
             if ($output == "OK") {
                 $id = $db->nextid("SmsLog_sequence");
開發者ID:TaylorMonacelli,項目名稱:phplib,代碼行數:31,代碼來源:RingTones.php


注:本文中的sms::getbalance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。