Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > PHP Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2008, 02:24 PM
Junior Member
BizHat Newbie
 
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 03:42 PM.
Reply With Quote
  #2 (permalink)  
Old 10-10-2008, 11:45 AM
Junior Member
BizHat Newbie
 
Join Date: Sep 2008
Posts: 18
Default

Where exactly you want to use this script? Could you be detailed?
Reply With Quote
  #3 (permalink)  
Old 01-29-2009, 07:53 PM
Junior Member
BizHat Newbie
 
Join Date: Jan 2009
Posts: 4
Default

hm.. what problems?

if($points > 20)
echo "text";
else
echo "grey text";
Reply With Quote
  #4 (permalink)  
Old 02-12-2009, 02:21 PM
Junior Member
BizHat Newbie
 
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0