User Tag List

Results 1 to 4 of 4

Thread: Implementing a Promo Code with PHP, MySQL, and Get Object?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementing a Promo Code with PHP, MySQL, and Get Object?

    I'm looking to create one-time-use promo codes for my next Android app, so we can give people the full version of the app for free, without having to install an apk separate from the Play Store. I understand this can be done with the Get Object, PHP, and MySQL, but I'm not really sure where to start to do this.

    Does anyone have any experience with this kind of thing? I'm a fairly advanced MMF2 user, and I've used the Get object to interface with Google API's on PC, Android and iOS, but I've never dealt with making my own server functions to handle this sort of thing. Anyone have any suggestions or examples of similar implementations?

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2012
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not very difficult. Your .php file point to your Mysql database. In your Mysql database you have at least 2 columns which are your one-time-use promo codes, and a number (for example 0 if the code has not been used yet, and 1 when it have been.)

    Then in your app with GET object you send to the .php the one-time-code the user want to validate. Configure the .php to send the second column, so the activation state.

    If it's a 0 ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, well I've never done any work with MySQL, PHP, online databases, or server code... so you saying "it's not very difficult" is not very helpful.

    I need to learn how to set up the database in the first place, what to put in the PHP code, and how to use GET in this particular way.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Sep 2012
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also want to do a promo for IOS. I did the tutorial : http://community.clickteam.com/threads/87185-Online-High-Score-Tutorial
    It remains the files php and mmf2.5 to change. Can someone help me there? thanks

Similar Threads

  1. User Friendly Promo Code Links
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 18th April 2013, 06:23 PM
  2. Some sales numbers and experience to share plus promo code
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 19
    Last Post: 7th November 2012, 12:58 PM
  3. Promo code ilimited ?
    By flechenoir in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 11th March 2012, 07:41 PM
  4. MySQL object ?
    By Tanios in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd February 2011, 05:50 PM
  5. Get Object : MySQL
    By Ham in forum File Archive
    Replies: 0
    Last Post: 10th May 2010, 09:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •