Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 5 12345 LastLast
Results 1 to 10 of 49
  1. #1
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default Private Messaging [PHP]

    I'm learning PHP, so I'm just making this simple system.

    So what I want to happen is: if the user has no private messages it displays a message. Otherwise it shows the messages (haven't done that yet). I just want some confirmation that the code will work, and if it doesn't what's worng with it.

    PHP Code:
    <?php

    $query 
    mysql_query("SELECT * FROM `private_messages` WHERE `id` = '".$sess_id."' ORDER BY date DESC");
    $pm_count mysql_num_rows($query);

    if(
    $pm_count == 0){
        echo 
    'You do not have any messages at this time.';
    } else{
        
    wotev;
    }

    ?>
    +rep

    Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks .
    Last edited by Invent; 28-07-2008 at 04:36 PM.

  2. #2
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    wotev; isn't going to work

    but yes, that looks like it should work.

  3. #3
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    heh. :rolleyes:

    Alright, thanks.

  4. #4
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    What I don't understand is ... why post something like that?

    Surely it would be easier to test it yourself to see if there are any errors than to ask a community?

    Next time DIY. But yes, that will work.

    Edit// Why say +rep when you don't have any rep power.
    Last edited by Source; 26-07-2008 at 12:20 AM.


    www.fragme.co = a project.

  5. #5
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    He's doing it for his post count.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  6. #6
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Ah right. 1337 ^.^

    // I guess that post was for your post count aswel
    Last edited by Source; 26-07-2008 at 12:32 AM.


    www.fragme.co = a project.

  7. #7
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    How do you know?

  8. #8
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    You forget Mr Mingle. He knows everything.

    This comes to mind: http://upload.wikimedia.org/wikipedi..._Who_Knows.jpg
    Last edited by Source; 26-07-2008 at 12:33 AM.


    www.fragme.co = a project.

  9. #9
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Sorry, are you trying to argue?
    How could this hapen to meeeeeeeeeeeeeee?lol.

  10. #10
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Yes, I would like to know "how do you know he is doing it for his postcount?".

    How hard is that to comprehend?

    You really didn't need to make another pointless post, asking me if I wanted to argue.. when you could have simply answered the blooming question.

Page 1 of 5 12345 LastLast

Posting Permissions

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