Text us or call us on : 011 33 20 30 40
 

Virtual Mobile PHP Example

Example PHP Code

Please feel free to copy this code and use it as you please. You can also download the appropriate files here:

Create MySQL Database to store the data

MySQL Class - Manages the connection and actions on the database

Inbound Action - Script which is actioned

Inbound View - View inbound SMS


  //include the database handling class
  include("mysqlclass.php");

  //Assign POSTED variables
  $destination = $_POST['gwNumber'];
  $originator = $_POST['originator'];
  $message = $_POST['message'];
  $smsTime = $_POST['smsTime'];
  $timeZone = $_POST['timeZone'];
  $network = $_POST['network'];
  $id = $_POST['id'];
  $status = $_POST['status'];

  //Create a new instance of the mysql class and write data to database
    $mysql = New mysql(0);

    $sql = "
      INSERT INTO
        inbound
          (varOriginator, varDestination, varMessage, dtTime, varUnixTime, varUDH, intId)
     VALUES
          ('$originator', '$destination', '$message', '$time', '$unixTime', '$udh', '$id')";

    $mysql->query($sql);

        

Quick Links

Latest News


aql wholesale mobile mast rollout - 3000 new sites by october

The aql wholesale mobile service operates on the 3 UK 3g network. 3 underwent an aggressive mast...

Read More

High Speed Internet in Leeds (and most other places).

22nd Feb - Leeds - aql have completed the first steps in a Leeds-Centric fibre rollout,...

Read More

aql is appointed as 3 m2m partner

aql have been appointed by 3 as an m2m (machine to machine) MVNO (mobile virtual network...

Read More

3 mobiles can now be tracked via the aql location API

aql are pleased to announce we're the first mobile messaging aggregator to offer "mobile...

Read More

aql - set for expansion - hiring account managers!

We're pleased to announce that the renovation of our offices and training rooms in our Grade II...

Read More