<style type="text/css">
td
{
color:black;
padding-left:5px;
wrap:none; /* Look this up at [url=http://w3schools.com]W3Schools Online Web Tutorials[/url] - I'm not sure if wrap is valid*/
}
tr.odd
{
background-color:#D5E4FD;
}
tr.even
{
background-color:#fff; /* Different value */
}
</style></head><body><table><tr class="odd"><td>Stuff</td></tr><tr class="even"><td>Suff2</td></tr></table></body>
This makes it easier to code and easier to maintain.
I may be trying to do something that is way over my understanding of PHP. First , I do not have a clue what most of this script means or does. The link you gave me is great, but I do not know where to start. This is not my code. I need some formal training on PHP code.
Any way, I think on this issue I need to go and request a script forum and just have someone do this for me.
Now How do get the results of a fuction to be displayed in this table uesing the array?
PHP Code:
echo '<td>'.function($parameter).'</td>';
In the example above, function is the name of the function (you can't name functions function, it's a reserved word), and $parameter would be a value passed into the function. You can use the echo command to display the results, and the tds will put it in the table.
The reason I mentioned style is that it can be difficult to maintain code with a lot of inline style.