Click here to Skip to main content
16,017,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

I Have 3 Tables:

User_Table: Friend_Table: Post_Table:

RankId Name ImagePath Id FriendId MyId Id PostId RankId PostMessage

We Have Only One ParaMeter SessionId(RankId) Which Is in Post_Table And UserTable Named As RankId

In Friend Table I Have Stored FriendId On Postion FriendId Or MyId Depends On Sending And Recieving Requests

now the qusetion is this:i want to show Name,ImagePath FROM UserTable And PostMessage FROM Post_Table if me or my friend post any message

ByChecking Either He/she is added with me in Friend_Table .


Give Me Any Other Ideas If U Have.

Please Help me

thanks in advance
Posted
Comments
Umashankar Yadav 20-Jul-13 7:09am    
Can You Share Your DataBase Structure?
Member 9654996 20-Jul-13 7:26am    
i Have Already Shown Above Structure Of DataBase
CHill60 20-Jul-13 14:27pm    
It's not that clear I'm afraid
_Asif_ 20-Jul-13 16:19pm    
please explain foreign key relationship between all three tables
ZurdoDev 20-Jul-13 23:09pm    
Where are you stuck? What's in common?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900