Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 870803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:32:15+00:00 2026-05-15T10:32:15+00:00

Right now my script connects to an api and sends an sms, 1 number

  • 0

Right now my script connects to an api and sends an sms, 1 number at a time. I want it to pull from a local sql db then repeat the response for each number in the db.

$data['post'] = array (
    '_rnr_se'     => $rnrse,
    'phoneNumber' => '1234567890', 
    'text'        => 'This is a test SMS!',
    'id'          => '' 
);

// Send the SMS
$response = xcurl::fetch('api.phonegateway.com/', $data);

// Evaluate the response
$value = json_decode($response['data']);

How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:32:16+00:00Added an answer on May 15, 2026 at 10:32 am

    Copy from the docs

    mysql_connect("localhost", "mysql_user", "mysql_password") or
        die("Could not connect: " . mysql_error());
    mysql_select_db("mydb");
    
    $result = mysql_query("SELECT id, name FROM mytable");
    
    while ($row = mysql_fetch_array($result)) {
        $data['post'] = array ( '_rnr_se' => $row['number'], 'phoneNumber' => $row['phone_number'], 'text' => $row['text'], 'id' => '' );
    
    // Send the SMS $response = xcurl::fetch('api.phonegateway.com/', $data);
    
    // Evaluate the response $value = json_decode($response['data']);` 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is what I've got right now... I have a web page that when
Ok, So I have a external php script that get data from a DB
Right now I'm struggling to get this simple PHP AJAX request to work. <html>
Right now when I click on the date control, I start up at the
Right now I am using this Javascript timezone timer: http://www.hashemian.com/tools/javascript-countdown.htm This works but it
I am attempting to create a php script that can connect thru ssh to
I've been writing python scripts that run locally. I would now like to offer
I'm using the SQL Server Driver for PHP to connect to an SQL Server
I have an ATL ActiveX control that raises three events (Connected, Authenticated, Disconnected) which
I'm fairly new to Perl and was wondering what the best practices regarding subroutines

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.