tommyflint's Profile User Rating: -----

Reputation: 34 Craftsman
Group:
Members w/DIC++
Active Posts:
679 (0.32 per day)
Joined:
24-July 08
Profile Views:
12,426
Last Active:
User is offline Mar 06 2013 01:03 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   tommyflint has not set their status

Posts I've Made

  1. In Topic: Storing logic for discount module

    Posted 2 Mar 2013

    In the way I just explained if I add a new variable I have to add new columns.

    Can you explain how my option is "not effective"?

    Maybe I'm not explaining myself very well the idea of this is so the owner can set certain discount criteria e.g. Give 10 discount when the number of nights is greater than 2... Give 20 discount when the number of people is less than 4.... Give 30 discount when the the booking is made equal to 10 days before etc...

    I very much appreciate your feedback modi... This is exactly the reason I started this post to get other people's opinion and positive critism :)

    Thanks,

    Tom
  2. In Topic: Storing logic for discount module

    Posted 2 Mar 2013

    It's very restrictive that's the only thing what if I were to add a new variable e.g. The "the booking was made" to the first column.

    I was thinking something more like

    Variable | Expression | Condition | Condition End

    The variable being "length of stay" or "number of people" etc.
    Expression being "greater than" or "less than" etc.
    Condition being 1 or 2 etc
    Condition End used when the expression is between.

    What do you think?
  3. In Topic: Storing logic for discount module

    Posted 2 Mar 2013

    Okay thanks modi and how would you store the less than, greater than etc.. Variables?

    Thanks,

    Tom
  4. In Topic: Storing logic for discount module

    Posted 2 Mar 2013

    Hi modi,

    Store the form values in the database. The form is to allow the admin to set the criteria that the booking has to qualify for to receive the discount.

    It will probably end up being more complex but I just wanted to get ideas to how others would store this in the database with a simplified version.

    Thanks,

    Tom

My Information

Member Title:
D.I.C Addict
Age:
23 years old
Birthday:
June 8, 1990
Gender:
Interests:
Big fan of Rugby and obviously Programming as i wouldn't be here otherwise :)
Years Programming:
1
Programming Languages:
HTML, CSS, PHP/MySQL, VB.NET, MSSQL and Jquery

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.iflintinternet.co.uk

Friends

Comments

tommyflint has no profile comments yet. Why not say hello?