Styling field using info in database
-
Just wondering if there is a way of adding css to a table field using info from within the database? Or the more general question, are there hooks available when a table is being generated that would allow a function to look at the DB and write appropriate css?
For instance, if I have a table X containing a row having field “color” with value “red”, and I have a second table Y with “item” with value “t-shirt” that refers to that table X row, I want to indicate the color in the generated table, something like
`<p style=”color: red”>COLOR</p>
Should I just be looking at generating the html in question within php?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Styling field using info in database’ is closed to new replies.