本文整理匯總了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");