-
Notifications
You must be signed in to change notification settings - Fork 1
/
sms.php
20 lines (19 loc) · 672 Bytes
/
sms.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
include('way2sms-api.php');
require_once('connect.php');
$curDate = date('Y-m-d', time());
$querry = "SELECT m.Contact, m.Name,c.title from minister_info as m , create_event as c ,guests as g WHERE c.date='$curDate' AND g.event_id=c.event_id AND g.guest_id=m.Minister_ID";
$results =$connect->query($querry);
//echo $querry;
#echo $query;
while ($value=$results->fetch_assoc()) {
$msg = "Remainder: ".$value["Name"]." have event " . $value["title"]. " scheduled Today.";
sendSMS($value["Contact"], $msg);
#echo " MOBLE:: ".$value->Contact;
sleep(1);
}
# echo $curDate;
#sendSMS('9890811301', 'YOOOO DJ');
# echo "SMS Sent"
#$client->logout();
?>