IMPORTANTE Deve clicar num horário por cada pessoa. Se desejar marcar mais do que uma pessoa preencha o numero de horários que for necessário (1 para cada). ‘” . $now . “‘ and event_status='” . $OPEN . “‘ order by date”); while($row = mysqli_fetch_array($result_event)) { echo “ Data Local Info “; echo “ “; echo “ ” . $row[‘date’] . “ “; echo “ ” . $row[‘spot’] . “ “; echo “ ” . $row[‘comment’] . “ “; echo “ “; echo “ “; echo “ Data e Hora Slot Marcar “; $midnight = strtotime(“0:00”); $date_init = strtotime($row[‘date’]) + strtotime($row[‘init_event’]) – $midnight; $date_end = strtotime($row[‘date’]) + strtotime($row[‘end_event’]) – $midnight; $str_date_init = date(“Y-m-d H:i:s”, $date_init); $str_date_end = date(“Y-m-d H:i:s”, $date_end); $status_free = “FREE”; $result_slot = mysqli_query($con,”SELECT * FROM slot where (slot_status=’FREE’ and time >= ‘” . $str_date_init . “‘ and time <= '" . $str_date_end . "') order by time, slot_order"); while($row = mysqli_fetch_array($result_slot)) { $count+=1; echo " “; echo “ ” . $row[‘time’] . “ “; echo “ ” . $row[‘slot_order’] . “ “; echo “ “; echo “ “; } echo “ “; } echo ““; mysqli_close($con); ?> User / E-mail: Password: