I have a table that looks something like this:
ID | photo | ident | status
------------------------------------------------
80 | img/pho
You can use your status var as a class and add the colors for the classes in css like this
.color-v {
background-color: blue;
}
.color-x {
background-color: green;
}
Photo
Ident
Status
query($query)) {
$num_rows = 0;
while ($row = $result->fetch_assoc()) {
$num_rows++;
echo
"
{$row['photo']}
{$row['ident']}
{$row['status']}
";
}
/*freeresultset*/
$result->free();
}
?>