473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Looking for some help....

I haven't used php before, but now I have a need.

What I am trying to do is this:

I pull some info from my database (using Coldfusion). In that info are
color codes for a specific product. Currently I have a <div> tag that
has its background color set to the color that is pulled from the
database.

What I would like to do is have a box, with a diag. line through it
from corner to corner, one side of the divided box being the 1st color
of the product, and the 2nd half of the box being the other color code.

I was wondering if you PHP experts could help me with the code to get
this done???

I would greatly appreciate it!!
Thanks!
Steve

Dec 8 '05 #1
3 1089
The title of your post does not clearly indicate what you want. Of
course you are looking for some help, or else you would not post here.

A diagonal line is hard to do in HTML. You could have a vertical line
by using a table and setting the colors of two cells. If you insist on
having a diagonal line, you may want to use two overlapping transparent
images.

Dec 8 '05 #2
Sjoerd wrote:
The title of your post does not clearly indicate what you want. Of
course you are looking for some help, or else you would not post here.

A diagonal line is hard to do in HTML. You could have a vertical line
by using a table and setting the colors of two cells. If you insist on
having a diagonal line, you may want to use two overlapping transparent
images.

The limit of 'graphics' in HTML, practically, is transparent blocks.
If you're proposing to use PHP anyway, look at the various graphics
libraries available in PHP, and generate the item as a PNG.

Colin
Dec 9 '05 #3
Sjoerd wrote:
The title of your post does not clearly indicate what you want. Of
course you are looking for some help, or else you would not post here.

A diagonal line is hard to do in HTML. You could have a vertical line
by using a table and setting the colors of two cells. If you insist on
having a diagonal line, you may want to use two overlapping transparent
images.

The limit of 'graphics' in HTML, practically, is rectangular blocks.
If you're proposing to use PHP anyway, look at the various graphics
libraries available in PHP, and generate the item as a PNG.

Colin
Dec 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Chris Lott | last post by:
I already use and am happy with a variety of text editors (vim, emacs, ultraedit, jedit, Homesite) depending on my needs, but I would like recommendations for a PHP specific IDE that will run on...
2
by: Rick | last post by:
Hi all, I have recently been implementing php code in some web pages and am now looking for a more visual oriented php development environment because for example creating php/html forms by hand...
22
by: Martin MOKREJ© | last post by:
Hi, I'm looking for some easy way to do something like include in c or PHP. Imagine I would like to have: cat somefile.py a = 222 b = 111 c = 9
14
by: Jason Daly | last post by:
I'm a freshman at college as a computer science major. I'm not sure it has what I want. Does anyone know if a major commonly exists in web design (focusing in server side languages)? I want to...
4
by: Gerald Aichholzer | last post by:
Hello NG, I have a XML file looking like: <!-- some elements here --> <plugin> <icon></icon> <!-- some elements here --> <object> <!-- some elements here -->
2
by: Wayne Wengert | last post by:
I hope this is an appropriate group for this question? I work with a non-profit group that uses SQL Server 2000 for their data backend. They have a moderate size web site with many data driven...
1
by: iceColdFire | last post by:
Hi, I am into C++ compiler validation since past couple of years. Lately I have grown with a strange feeling...while on the course of my work, I start getting bored and very bored...I have...
24
by: Kevin | last post by:
Hey guys. I'm looking to get together some VB programmers on Yahoo messenger. I sit at a computer and program all day. I have about 3 or 4 people already, but it would be really cool to have a...
2
by: A.E lover | last post by:
Hi all, I am working on a project for industry and looking for free reliable C code for Singular Value Decomposition (SVD). I have the C code based from the book "Numerical recipes in C", but as...
1
by: vinniegolfs | last post by:
Been all over the internet for months now. Looking for a script that has the feel and look of ebay, but I have some programming ideas to change the way some of the script works. I've seen Rainworx,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.