Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP script troubles..
Old 09-20-2008, 08:35 PM PHP script troubles..
Novice Talker

Posts: 10
Name: John Meen
Trades: 0
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?
dev114 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-20-2008, 08:52 PM Re: PHP script troubles..
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
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>';

__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to PHP script troubles..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09317 seconds with 12 queries