I have a table in a MySQL table called persons
id LastName FirstName 1 Hansen Timoteivn 2 Svendson Tove 3 Pettersen Kari
and another MySQL table called orders.
id OrderNo personID 1 77895 3 2 44678 3 3 22456 1 4 24562 1 5 34764 15
How can I write a SQL query that I feed into PHP's mysql_query() function to return a list of "Order objects" that each contain a "Person object?" Each "Person object" has first name and last name as properties.
mysql_fetch_object()to produce an object with objects from a resource returned by a SQL query?