hi! everyone,currently im doing a directory system and my problem is that i want the user to login to the system and add some contents and when he/she login again he suppose to see only his contents he added and not contents of others.
Can you help me to solve this problem?
how users can login to the system and see the contents added by himself/herself
Started by jadago, Dec 23 2010 02:25 PM
1 reply to this topic
#1
Posted 23 December 2010 - 02:25 PM
|
|
|
#2
Posted 23 December 2010 - 09:19 PM
You can supply an 'owner' column along with each of your row entries, and only display the entry if the owner column matches them:
SELECT column(s) FROM table WHERE owner = '$current_user_id'
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









