Results 1 to 4 of 4

Thread: PHP script troubles..

  1. #1
    Join Date
    Sep 2008
    Posts
    4

    Post PHP script troubles..

    I want to make a script so when users have over 20 points they see a certain text... like


    if $points= 40+ then show "text" if not show "grey text"

    How would I make something like that?

    __________________________
    Social Bookmarking Service
    Last edited by sam.it; 09-26-2008 at 02:42 PM.

  2. #2
    Join Date
    Sep 2008
    Posts
    17

    Default

    Where exactly you want to use this script? Could you be detailed?

  3. #3
    Join Date
    Jan 2009
    Posts
    4

    Default

    hm.. what problems?

    if($points > 20)
    echo "text";
    else
    echo "grey text";

  4. #4
    Join Date
    Feb 2009
    Posts
    7

    Default

    Well, assuming $points holds the number of points, then

    PHP Code:
    if ($points >= 40) {
     echo 
    '<p>Text</p>';
    } else {
     echo 
    '<p style="color:#999999;">Text</p>';

    ________________
    credit counseling cheapest loans

Bookmarks

Posting Permissions

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