I am new to PHP trying to get data from database and check if this data equals to a value. If this is the case i wanna change the text color to red blue or green i tried the following code but if i run it my page crashes if i remove it i get all the data i want. Can someone help me out i am really new to PHP.

this is my array 

```
$arrayValues[] = array($Names, $Title, $Danger);

```

this is my code 

```
<?php
if($Danger == "High")
{
   <font color="red">$Danger</font>
}

if($Danger == "Medium")
{
   <font color="Green">$Danger</font>
}   
?>

```