I have the following code below I was wondering if there is a way to clean it up/improve it especially near the if statements. I am new to programming and this is what I came up with and its working fine I just think there might be a better way to accomplish it.    <?php require 'DB.php';try {    $stmt = $conn->prepare('SELECT * FROM equipment');    $stmt->execute();    } catch(PDOException $e){        echo'ERROR: ' . $e->getMessage();    }echo <table class='tableTwo'><tr><th>Equipment Type</th><th>Unit Number</th><th>Last Updated</th><th>Current Hours</th><th>Scheduled PM</th></tr>;while($row = $stmt->fetch())  {  echo <tr>;  echo <td> . $row['equipType'] . </td>;  echo <td> . $row['unitNumber'] . </td>;  echo <td> . $row['lastUpdate'] . </td>;  if ($row['nextPM'] - $row['currentHours'] > 100) {  echo <td class='good'> . $row['currentHours'] . </td>;  echo <td class='good'> . $row['nextPM'] . </td>;  } else if ($row['nextPM'] - $row['currentHours'] < 100 && $row['nextPM'] - $row['currentHours'] > 50){  echo <td class='soon'> . $row['currentHours'] . </td>;  echo <td class='soon'> . $row['nextPM'] . </td>;  }  else {  echo <td class='bad'> . $row['currentHours'] . </td>;  echo <td class='bad'> . $row['nextPM'] . </td>;  }  echo </tr>;  }echo </table>;?>
echoing html tags in php
php