4
Personal Speaking, I am developing a system for video conferencing and this should include a Dashboard with some information, such as the total of video conferencing of the current day, the next day and the amount of VIP video conferencing.
To show the total VIP video conferencing I am using the following code:
$dataDoDia = date('Y/m/d');
$sqlVideo2 = "SELECT * FROM videoconferencias WHERE dia = '$dataDoDia' ORDER BY dia, horaInicio";
$resultadoVideo2 = mysqli_query($connect, $sqlVideo2);
if (mysqli_num_rows($resultadoVideo2) > 0) {
while($dadosVideo2 = mysqli_fetch_array($resultadoVideo2)) {
$vip2 = $dadosVideo2['vip'];
$contVip = 0;
while ($vip2 === 'SIM') {
$contVip ++;
}
echo $contVip;
}
}
The data coming from the database is shown correctly, but the problem is that in the Wilhe it is entering Infinite Loop. Does anyone know where they might be wrong? Thank you!
Brother, it worked out here! I had not listened to this question of the logic of one while inside the other. Thank you very much for the strength.
– André
I who thank for being able to help, sometimes gnt gets lost amid the same HAUEHAUEAH codes
– Wees Smith