Ik zit met een "vermoedelijk" klein probleempje, namelijk ik wil als resultaat krijgen het aantal gevonden records op de statement:
if ($tijd_now >= $start_tijd and $tijd_now <= $eind_tijd) {
Kan iemand me hierbij helpen aub?
Alvast bedankt voor alle hulp,
Koen
Hier is mijn code:
-----------------------------------------
<?php
include 'connect.php';
$query="SELECT * FROM welkom";
if (!($temp = mysql_query($query,$connection)))
showerror();
while ($welkom = mysql_fetch_array($temp))
{
$start_tijd = $welkom ['start_tijd'];
$eind_tijd = $welkom ['eind_tijd'];
$tijd_now = date("H:i");
$date_now = date("d-m-Y");
}
if ($tijd_now >= $start_tijd and $tijd_now <= $eind_tijd) {
?>