FireGeek21
Technical User
HI,
Beginner here... I may have some syntax off a bit. Looking for some help here. I am adding a colored circle depending on the "level" in a database. The code before this connects to the database. Everything worked fine until I added the "IF" statement for the colored circles. Where did I go wrong???
Thanks for the help!!!
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
Beginner here... I may have some syntax off a bit. Looking for some help here. I am adding a colored circle depending on the "level" in a database. The code before this connects to the database. Everything worked fine until I added the "IF" statement for the colored circles. Where did I go wrong???
Thanks for the help!!!
PHP:
<?php while($row = mysql_fetch_array($result)):?>
<div>
<div><a target="_blank" class="doc" href="Medications/<?=htmlspecialchars($row['medication'])?>.pdf"><?=htmlspecialchars($row['medication'])?></a></div>
<?php
if ((?row['level'])="CCMedic") {
'<div><a><img src="/includes/images/red.png" alt=""></a></div>'
} elseif ((?row['level'])="Medic") {
'<div><a><img src="/includes/images/blue.png" alt=""></a></div>'
} else {
'<div><a><img src="/includes/images/gray.png" alt=""></a></div>'
}
?>
</div>
<?php endwhile;?>
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)