jQuery + PHP

jQuery + PHP

Hi Everyone,

Is it possible to change a table cell background color or add any attributes based on a criteria, anyway, here's my scenario...

I have a php table dynamically created onthefly, (let say on load), then i have a sql query returning some values

so illustrating;

Table:                        Sql Result

1 2 3 4 5                        2 5 7
6 7 8 9 10

What im trying to achieve is use the sql result to add attributes to the table cells so for the illustration say i want to add a bold attribute to all table cell which corresponds to the sql result, the result would be,

Result;

1 2 3 4 5
6 7 8 9 10

I'm buried here and thinking more than I should; its drying me up. Any help? Any plugins out there?

"Its php (server-side) and jquery (client-side) talking... and they seem to hate each other..." but I know there is a way!