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


KPMG appointed as auditors for aql

As a growing company, aql have a strong desire to achieve our long term expansion plan and In...

Read More

UK Network Operators’ Forum

The United Kingdom Network Operators’ Forum (UKNOF) relies completely on sponsors and volunteers...

Read More

North Pole Trek

aql sponsored businessman turned adventurer, Geoff Major, as part of his charity challenge of a...

Read More

Janet Networkshop 2012 event, York

The annual Janet Networkshop event took place this week between 3rd and 5th April 2012,...

Read More

RIPE NCC event

Dr Adam Beaumont will be representing aql at RIPE (64) NCC meeting to be held in Ljubljana,...

Read More