Witam!
Jak sprawdzić, co jest w bazie i użyć do tego warunku if? zrobiłem coś takiego:
$data2 = dbarray(dbquery("SELECT * FROM ".$db_prefix."error_reports WHERE error_id='$error_id'"));
$pobstat = $data2['error_status'];
if ($data2['error_status'] == "new") $stat = "orange";
if ($data2['error_status'] == "fals") $stat = "gray";
if ($data2['error_status'] == "ok") $stat = "green";
if ($data2['error_status'] == "err") $stat = "red";
ale nie działa Co jest źle?