Jump to content

SMS SENDER TO MYSQL USERS


hoverinc

Recommended Posts

Hello dear guys,

I have this code below which is to send SMS to single mobile No, but i am willing to send this message to the whole table of mobiles that i have please help, with thanks in advance

<?
$url="https://www.GATEWAYSITE";
$login="LOGIN";
$pwd="PSWD";
$mittente="CO";
$numero="$cellulare";
$testo=urlencode($messaggio);
$y="login=".$login."&pwd=".$pwd."&testo=".$testo."&numero=".$numero."&mittente =".$mittente;
$contents = @file_get_contents($url."?".$y);
print $contents;
?> 

Link to comment
Share on other sites

<?php
$link = @mysql_connect('localhost', 'root', '') or die ('Could not connect to mysql');

@mysql_select_db('radius senza lock', $link) or die ('Could not select database');

$sql = "SELECT mobile FROM ias_mobile" ;
$result = mysql_query($sql, $link);

if (!$result) {
echo "DB Error, could not query the database\n";
echo 'MySQL Error: ' . mysql_error();
exit;
}

while ($row = mysql_fetch_array($result)) {
$mobile = $row['mobile'];
echo $mobile;
echo "<br>";
$sql = "INSERT INTO sms_notify (mobile) VALUES ('" . $mobile . "')";
mysql_query ($sql, $link);
}
mysql_close($link);
?>

Link to comment
Share on other sites

THIS IS THE WEBGATE OF THE SMS PLEASE HELP NEEDED TO SEND TO MULTIPLE USERS AT ONCE WITH THANKS

<?
$url="webaddress";
$login="user";
$pwd="psw";
$mittente="company";
$numero="$cellulare";
$testo=urlencode($messaggio);
$y="login=".$login."&pwd=".$pwd."&testo=".$testo."&numero=".$numero."&mittente=".$mittente;
$contents = @file_get_contents($url."?".$y);
print $contents;
?> 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.