• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display only one row?

#1
[eluser]kr1pt[/eluser]
Hi all, I have xy rows (private messages system) in the database, and I have from_id = 2, to_id = 1, and opposite. Logged in user's ID is $this->user->id. How to group all messages from one user and display only one row, even those I sent. Like you've got on FB. You have 10 messages from Derp Derpington, but only 1 is in the messages list: Derp Derpington (10).

Thanks in advance


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.