PHP Color on a page

Running a php page to display records from a file. Works fine.
If I run just the php section in a program by itself, all colors change for the rows as intended.
If I run the routine inside my main view page the color is always a light blue, title color work as intended(tr) but not the rows of data fields.

Title colors work:
[php]

Log Date User '; [/php]

Table color does not, just below the titles:

[php]
while($rows=mysql_fetch_array($result)){
echo "

".$rows['Lognumber']." ".$rows['Date']." ".$rows['User']." "; }

[/php]

Again, is a standalone php file it works fine.

Thanks

Fred Henck
Omni Information Systems

Make sure there’s no stylesheet entries that would override it

since your working with two different tags - TD vs TH I would use css. I know, when i first learned css, I hated it, but does have its advantages

in your css just add (which will change ALL the TD,TH tags)
[php]
td{
color:green;
}
th{
color: red;
}[/php]

to have a little more control
[php]
td.mylist{
color:green;
}
th.header{
color: red;
}[/php]

Then do the following… this way you can change fonts if you like as well
[php]
while($rows=mysql_fetch_array($result)){
echo "

".$rows['Lognumber']." ".$rows['Date']." ".$rows['User']." "; }[/php]

I personally dont change color in the TR tag. but that is just me.
Hope that helps you in the direction you are looking for…

Sponsor our Newsletter | Privacy Policy | Terms of Service