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