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
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.
Where exactly you want to use this script? Could you be detailed?
hm.. what problems?
if($points > 20)
echo "text";
else
echo "grey text";
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