/home/desid573/public_html/drivers
Edit: /home/desid573/public_html/drivers/createSMS.php (1844B)
connect_error);
$qcon=mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
$sql = "SELECT * FROM `desid573_eway_codes`.`drivers` WHERE `city` = 'queensland'";
$query = $conn->query($sql);
while($row = $query->fetch_assoc()) {
$name = $row["driver"];
$number = $row["driver_phone"];
$id = $row["id"];
$message = "Hello ".$name.", we need to update our database. Could you please follow this link and make sure all your details are filled out. Thanks Lewis from FamilyCab. https://desidrivers.com.au/drivers/driverBilling.php?driver_id=".$id;
$account_sid = 'AC1b4db66d86197058950ad349a2327a85';
$auth_token = '053ae80d10eac3b60c92179d3492badf';
$client = new Client($account_sid, $auth_token);
$messages = $client->messages->create("$number", array('From' => "FamilyCab", 'body' => "$message"));
//echo $message."
";
echo $messages->sid."
";
}
// $message = "Your user account has been set up on the Vromo app. You will have been emailed a link to create a password. Once logged in please go to the profile tab and update your phone number, take a selfie and change your password.";
// $account_sid = 'AC1b4db66d86197058950ad349a2327a85';
// $auth_token = '053ae80d10eac3b60c92179d3492badf';
// $client = new Client($account_sid, $auth_token);
//$messages = $client->messages->create("$phone", array('From' => "DesiDrivers", 'body' => "$message"));
// error_log($messages->sid);
//echo "OK";