Open jackrk opened 10 years ago
I think the best design will be to have stored procedures inside our database. If you aren't familiar, you can write procedures in sql that are more or less just queries, and then call those procedures from outside. That way our php controller can just call the stored procedure in one line and if we need to change the procedures there is just one instance to change.
Look up the syntax and stuff for a procedure and implement them based on the requirements above.
Develop the database queries that we'll need.