$selectTip = $pdo->query("SELECT * FROM `tips_rate`
WHERE `tip_id` = "".$row["id"]."" "
);
$selecttotal = mysqli_num_rows($selectTip);
$rate = $pdo->query("SELECT SUM(star) as startotal FROM `tips_rate`
WHERE `tip_id` = "".$row["id"]."" "
);
$startotal = mysqli_fetch_array($rate);
echo $startotal["startotal"]/$selecttotal;
when we echo the result of their division by
there is no value, he will see NAN.. Can you show me 0?