0
I’m populating a table’s information with comic book data. I wonder if there is any way to check line by line that this coming and emit a beep just for the new lines within the conditions that I created.
Note that I have already created a warning condition, however, appears to everyone, until then everything right, but if I put the sound, it will play all the time, because the information will still be there. I want to make a if
for each new line and disregard those that have already been checked.
I used the following line to make the sound:
<embed src="alert.mp3" width="1" height="1" type=""></embed>
<table class="table">
<tr>
<td><b>valor1</b></td>
<td><b>valor2</b></td>
<td><b>valor3</b></td>
<td><b>valor4</b></td>
<td><b>valor5</b></td>
</tr>
<?php
foreach ($read as $key => $value) {
$lista = $value['obs'];
?>
<tr <?php if($lista == "teste"){echo 'class="table-danger"';} ?>>
<td><?php echo $value['valor1']; ?></td>
<td><img width="150" src="data:image/jpeg;base64, <?php echo $value['valor2']; ?>" /></td>
<td><?php echo date('d/m/Y H:i:s', strtotime($value['valor2'])); ?></td>
<td><?php echo $value['valor4']; ?></td>
<td><?php echo $value['valor5']; ?></td>
</tr>
<?php } ?>
"disregard those that have already been checked", as you know which ones have already been checked?
– Woss
The end, what’s the problem: play the sound or identify the new lines to then play the sound?
– LipESprY
Why use sound? The app will be adapted for visually impaired?
– Deividson Oliveira
Notice that I have already put an Alert: if($list == "test"){echo 'class="table-Danger"';}, the conditions to play the sound(Alert), are also the same. But if I change the line, it will be playing endlessly. I want him to disregard the past and check only the one that will be updated.
– Camargo
Sound is an Alert only. Alert and stop. I refresh the page with a refresh every 8 sec
– Camargo