Solved

SQL Font Color

Posted on 2009-07-15
2
664 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 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