[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SQL Font Color

Posted on 2009-07-15
2
Medium Priority
?
670 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 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

649 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