Tag Info

New answers tagged

1

Definitely implement the rules in PHP. SQL is for data, not business logic or other behavior. There is a third option, implement rules as expressions stored in the DB and have PHP evaluate them, but that way madness lies. The rules should be pre-defined, not defined when configuring a course's pricing in a domain-specific language. Early on, you should ...



Top 50 recent answers are included