    $query2 = "SELECT*FROM `carwash` WHERE `car_no`='$num'";
    $result = $db->query($query2);
    $row = $result->fetch_object();

    if (!$row) {
        ?> <p class="bg-danger" align="center"><?php
            echo "not registerd";


            ?> </p> <?php
    } elseif ($row->score > 100) {
        $query4 = "UPDATE `carwash` SET `score`=score-100 WHERE `car_no`='$num'";
        $result4 = $db->query($query4);
        ?> <p class="bg-success" align="center"><?php
            echo "you won prize";