Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

SMS PIN code query Contents | SearchSMS newsgroup

Home > Product Manual > Examples and Solutions > SMS Counter game

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Examples and Solutions
  Pin game
  E-mail to SMS Alerts
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  Load Balancing
  Asterisk PBX SMS
  SQL SMS Gateway
  SMS Service Provider
  Service Provider
  SMS PIN code query
  SMS Counter game
  SMS newsgroup
  Distributed SMS
  SMS Menu
  Google maps
  Forwarding
  Birthday greeting - SQL Express
  Birthday greeting - MySQL
  Instant brochure - MMS autoreply
  Alphabet letter game
  SMS sport betting service
  E-mail about outgoing SMS messages
  SMS Information Menu
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

An SMS game with Autoreply database

This game was requested by one of our customers.

>What I actually like to do is a game, where every 3000 incoming SMS wins. Every sender

>should receive an answer on which position he he is, like you are on position 2333, you didn't win.

This is very easy. You can use the "Autoreply Database User" in Ozeki NG to create this service.

You should create a database table that stores the incoming messages and put the following SQL commands into the "Autoreply Database Script". Please note that these queries are for MySQL.
n.*
INSERT INTO inmsg (phonenum,msg) VALUES ('$sender','$messagedata');
SELECT '$sender',concat('Looser. You are number ',(select count(*) from users))
from inmsg where (select count(*) from users)<>3000 limit 1;
SELECT '$sender','Winner. You are number 3000.' from inmsg where (select count(*)
from users)=3000 limit 1;


The databse table layout can be:
CREATE TABLE inmsg (
   id int not null auto_increment primary key,
   phonenum varchar(30),
   msg varchar(255));

Further pages:





Next page: SMS newsgroup
Source: http://www.ozekisms.com/index.php?owpn=465, Word count: 645
Copyright © 2000 - 2010 Ozeki Informatics Ltd.
All rights reserved

Legal information        |         Privacy policy        |         Terms of use
Please, address your inquiries to info@ozekisms.com