Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Combine DB calls as much as possible
  2. Remove absolute server links and make relational.
  3. Add a namespace and remove all global vars, unless specifically needed.
  4. Separate presentation from functionality. Controller page and then include the html needed for that view, do you make repetitions in the controller or view page? . View functionality like repeating table rows can go in the view page, any logic needs to stay in the php page. All formatting and layout of the view should be in the html/css.
  5. Organize the php and move vars to the top of the section
  6. Securely screen all incoming form data, and then sql screen before sending to db.
  7.  

...