Ich möchte die Farbe des Status ändern, die (Pending, Approved und Cancelled) dynamisch sind.Ändern Sie die Textfarbe abhängig vom Status
bisher bin ich hier mein Code aber die Farbe hat sich nicht geändert. Irgendein Vorschlag? danke im voraus
if ($status == 'Approved')
echo 'style="color: green;"';
else if ($status == 'Cancelled')
echo 'style="color: red;"';
else if ($status == 'Pending')
echo 'style="color: blue;"';
echo '>'.$row['status'].'</th>';
if ($ status == 'Approved') echo 'style = "Farbe: grün;"'; sonst if ($ status == 'Canceled') echo 'style = "color: red;"'; else if ($ status == 'Pending') echo 'style = "Farbe: blau;"'; echo '>'. $ Row ['status']. ' '; –
Das ist mein Code bisher –
in Ordnung. Entschuldigung für das –