Hi guys! I don't know if i post it in the right forum page, but I would like to ask if it's possible to put color on the last row of your table (LAST ROW ONLY). the data is from SQL. I would appericiate any references or links, snippets, anything! Thanks! :)

In your table, set a field with primary key and auto increment options , ie ; Row ID;

Then ; in your query , set

SELECT  FieldNameId   FROM   your_Table ORDER BY FieldNameId DESC LIMIT 0, 1;

the result of this query will give last row Id

Member Avatar for diafol
tr:last-child
{
background: green;
}

should do it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.