Advice with signup script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wizzard81
Forum Commoner
Posts: 66
Joined: Wed Jan 15, 2003 6:05 am
Location: Belgium
Contact:

Advice with signup script

Post by wizzard81 »

Hello,

I've made a little portal and if someone signup everything is stored in my db and it creates automatic an invoice that will be send to the customer.

i have this table_invoices table_customers, table_orders

But now i want to give new customers a month trial so my problem is if they are in trial an invoice must not be made because the invoice numbering will be incorrect then.

My table orders is linked to invoices by invoice_id. So thats my big problem? Anyone can help or had this problem also?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

check their user level, if it's a trial user, don't generate the invoice?
wizzard81
Forum Commoner
Posts: 66
Joined: Wed Jan 15, 2003 6:05 am
Location: Belgium
Contact:

Post by wizzard81 »

A good idea. Checking if they are trial, thanks feyd :)
Post Reply