Is writing a PHP page for each query a good programming skill?

BarryC

New Member
Actually I got selected in one of the company. They were working in PHP from quite a long time.I worked for just 1 week over there, but the thing which I saw over there is that they used to write one PHP page for each table and they used to include those file and pass some variables to it and getting the array of variables in return from those classes.It did not put me off at that time, but I tried to use it now. What I am not getting: is it a good practice to write a class for each table in your database and letting all the SQL part in that query?How would a script for at least one table look like?
 
Back
Top