//query for counting the total number of rows
$result = $conn->prepare("SELECT COUNT(*) FROM your_table");
$result->execute();
$num_rows = $result->fetchColumn();
//condition to display the result
if ($num_rows>0)
{
echo "there is some results =".$num_rows;
}else{
echo "no result";
}
jfontchooser выглядит довольно хорошо и является открытым источником.