Questions tagged [php-dao]

generate php classes which provide operations on MySQL database. For transactions; use InnoDB engine.

2 questions
1
vote
1 answer

Are DAO objects better than static DAO classes in PHP?

I understand the reasons for not using statics in Java. However, I'm currently developing OO code in PHP. I use DAOs with the goal of keeping my queries in one place so I can easily find them. I also instantiate some DAOs so I can incorporate…
user3168961
  • 375
  • 1
  • 10
1
vote
2 answers

From php a Mysql connection error when using parameters in phpdao2.6

I've been using phpdao2.6 on a local Mac MAMP installation and another remote red hat linux server fine. I've recently moved to an EC2 amazon ubuntu flavour and installed a LAMP set up. Suddenly I've found I'm getting mysql connection errors, but…
sapatos
  • 1,292
  • 3
  • 21
  • 44