Fortunately, I know how to retrieve data from a database. It's not a problem. For my object oriented application, I will have a table with users / people. I also have a class person.
Case:
I would like to show the end user a list with all the people. What is the right way to show this?
- using
mysql_fetch_object(), in this case php will create its own type of object, not my own typeperson - Extract all rows from db and then create an object of each of them?
Or is there another better way to do this?
Can you also show some (pseudo) code?
thanks
source
share