Welcome
I have a "order status" field in the database whose values are not a number but a closed selection list, e.g. (To be accepted, accepted, to be improved) I would like the background of the entire record to be in a specific color depending on the status selected, but as I do with the tutorial , the records are still colorless
if ($data["status"] == "Do akceptacji")
{
$record["status_style"].='style="background:red"';
}
elseif ($data["status"] == "Zaakceptowano")
{
$record["status_style"].='style="background:blue"';
}
elseif ($data["status"] == "Do poprawy")
{
$record["status_style"].='style="background:green"';
}