How can the SQL query be modified to include an additional range of postal codes, such as 14401-14715?

To include an additional range of postal codes, such as 14401-14715, in the SQL query, you can use the BETWEEN operator along with the AND keyword to specify the range of postal codes to include in the query. This will allow you to retrieve data for postal codes within the specified range.

$sql = "SELECT * FROM customers WHERE postal_code BETWEEN 14401 AND 14715";
$result = mysqli_query($conn, $sql);

if (mysqli_num_rows($result) > 0) {
    while ($row = mysqli_fetch_assoc($result)) {
        // Process data here
    }
} else {
    echo "No results found.";
}