Child pages
  • DB class best practices

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: I wonder what the author's native language would be ^^



You should use insert(), update() et and delete() as much as possible, and only use execute() if the query gets too complex.
Please note that this method returns a boolean value (true or false), not a database resource that can then be used.