Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 rows in DB show only 1 in table

    Hello!

    I have my DB structure like this:


    The yellow, 2 with the same tid and user are shown in the table on 1 row each of them. I want just to SUM the vote and display only 1 row with the tid and the user (which have 2 or more same tid and user in the db) in the php code(when the tid and user are same only).

    Thank YOU in advance!
    Last edited by Cyber4Hacks; 11-25-2011 at 06:59 PM.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Is this any different than the problem you have in the thread listed here: Need help :)?

  • #3
    New Coder
    Join Date
    Nov 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No but I just wanted to clear what is the problem. Sorry for double posting.

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Thats okay, you can modify your original post in the other thread to change the title if you like.
    We'll just keep going in the other thread.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •