Hello Everyone,
Fortunately, I know how to fetch data from the database, That's not a problem.
For my object oriented application I would have a table with users / persons.
I also have a person
class.
The case: I would like to show to the end user a list with all the persons. What is the correct way to show do this?
- using
mysql_fetch_object()
in this case php will create it's own type of object, not my own type ofperson
- Fetching all the rows from the db and then create an object of each?
Or is there an other better way to do it?
Can you also please show some (pseudo) code?
Thanks