I'm working on a php system for multi level market network. This system will run offline on a desktop Can someone give me the best way to build this in php? The system will have 7 levels. That is 1 to 7. Level 1 being the entry level. This system will allow registration of a member, the member will introduce five member who will be registered. Each of the five will introduce five. Each time a member introduce five members, he automatically moves to a higher level level.
They way I'd do it is have two variables userlevel and userrefer. When a user registers their userlevel variable is set to 1 and their userrefer to 0. When users register have a refer box where they can type in another user's name. There is a lot to type but here is it in a logical form. Use username to get userrefer # from MySQL database +1 to userrefer # If userrefer # is => 5 (+1 to userlevel & set userrefer to 0) However I'm sure there are better ways of doing this as I've not been doing php and MySQL long haha.