gdebojyoti
AFOL
Hello.
I want to display the latest 'N' posts made by my friends and me in my home page. Now there are 2 tables in the database related to this.
One of them is "friends" (list of members who are my friends can be obtained from this table). The other is "updates" (all the status updates are stored in this table).
The common field to both the tables is "memberID" (a unique number allotted to each member of the site).
So how do I obtain and print out the required information from these 2 tables?
I hope my question is clear. Do let me know if I need to clarify further.
By the way, I am developing the site using PHP (procedural programming only; no OOP), and I'm using MySQL database. Also, I would like the processing time and power required for running the script to be as low as possible, since I will be going for shared hosting.
I want to display the latest 'N' posts made by my friends and me in my home page. Now there are 2 tables in the database related to this.
One of them is "friends" (list of members who are my friends can be obtained from this table). The other is "updates" (all the status updates are stored in this table).
The common field to both the tables is "memberID" (a unique number allotted to each member of the site).
So how do I obtain and print out the required information from these 2 tables?
I hope my question is clear. Do let me know if I need to clarify further.
By the way, I am developing the site using PHP (procedural programming only; no OOP), and I'm using MySQL database. Also, I would like the processing time and power required for running the script to be as low as possible, since I will be going for shared hosting.