Açılış ve kapanış saatlerini kontrol etmek için aşağıdaki kodu kullanıyorum ve iyi çalışıyor. Ben başarmak istiyorum neHaftanın her günü için açık ve kapanış saatini ayarlayın
// Set open and closing time for each day of the week
if ($weekday == "Monday") {
$open_from = "17:00";
$open_to = "21:45";
}
xml dosyasından saat almak için ama ben başka argüman bu kodu kullanmak
// Set open and closing time for each day of the week
if ($weekday == "Monday") {
$open_from = "<?php echo $mondayopen->nodeValue ?>";
$open_to = "<?php echo $mondayclosed->nodeValue ?>";
}
çalışmıyor ve iyi çalışıyor.
<tr><td class="text-left">Monday</td>
<td class="text-right"><?php echo $mondayopen->nodeValue ?> - <?php echo $mondayclosed->nodeValue ?></td>
</tr>
gibi olmalıdır kodu. –