How to show how many messages someone has in their inbox?

Discussion in 'PHP' started by CuBz, Aug 4, 2010.

  1. #1
    I have a website, and when someone recieved a message, an envelope shows to tell them they have a message, I was just wondering how would I have it show how many messages they have?

    The MySQL table is called inbox :)

    Thanks in advance
     
    CuBz, Aug 4, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    You could use mysql_num_rows() along with a mysql_query()...

    You'd recieve a better response, if you reply with your db structure (such as column names)
     
    danx10, Aug 4, 2010 IP
  3. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks but I figured out how to do it :)
     
    CuBz, Aug 4, 2010 IP