www.webdeveloper.com
Results 1 to 3 of 3

Thread: PHP and MySQL Post Count and Image Display

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    1

    PHP and MySQL Post Count and Image Display

    Hey guys,

    I have a PHP Micro-Blogging Website which is Star Trek-themed. What I would like to do is have it where if a user posts 100 messages, then a rank image appears, but if a user posts 200 images, then another rank image would appear but in its place.

    I have the current php code:

    PHP Code:
    if(user_post_count==200)
    {
    echo 
    "your image url";
    }
    else
    if(
    user_post_count==300)
    {
    echo 
    "image url 2";
    }

    else
    {
    //move on to something else

    But I need to assign this code to a $rank setting to add it to my html file.

    Any ideas?

    If you need anymore info, then please ask me.

  2. #2
    Thanks,

  3. #3
    Join Date
    Jun 2012
    Posts
    8
    http://www.urphp.com/php-mysql-count-function/
    go to this site u have answer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles