Solved

SQL Font Color

Posted on 2009-07-15
2
650 Views
Last Modified: 2013-12-13
I'm wanting to make the SQL result show in a lime green #00ff00 but i can't seem to make it work without causing an error.

The GiftPrice is what I would like #00ff00, along wiht the $ sign, which is showing green.
echo "<p><font color='#00ff00'>$</font>" .mysql_result($result,$i,"GiftPrice");

Open in new window

0
Comment
Question by:mimoser
2 Comments
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 500 total points
ID: 24866039
Try this:
echo '<p><font color="#00ff00">$'.mysql_result($result,$i,'GiftPrice').'</font>';
 

# ...or this:

$GiftPrice = mysql_result($result,$i,'GiftPrice');

echo '<p><font color="#00ff00">$'.$GiftPrice.'</font>';

Open in new window

0
 

Author Closing Comment

by:mimoser
ID: 31604084
Perfect, thank you!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now