I have code that shows the count of how many volunteers are in my database. How do I write a code that displays the colour of the echo to be red if the count/total is below 5?
<?php
$servername="localhost";
$username="root";
$password="";
$dbname="schoolfair";
$con=mysqli_connect($servername,$username,$password,$dbname);
$sql="SELECT count(idnumber) AS total FROM volunteers";
$result=mysqli_query($con,$sql);
$values=mysqli_fetch_assoc($result);
$num_rows=$values['total'];
echo "<tr> <td>" . $num_rows . "</td><td>" . $num_rows . "</td></td>";
?>