Cita:
Un saludo. while($res=mysql_fetch_array($resultados)) {
if ($res['fecha7'] != "") {
$start_date9 = ''.$res['fecha7'].'';
$end_date9 = ''.$res['fecha8'].'';
function check_in_range ($start_date_9, $end_date_9, $evaluame9) {
$start_ts9 = strtotime($start_date_9);
$end_ts9 = strtotime($end_date_9);
$user_ts9 = strtotime($evaluame9);
return (($user_ts9 >= $start_ts9) && ($user_ts9 <= $end_ts9));
}
if (check_in_range4($start_date_4, $end_date_4, $fecha_a_evaluar_)) {
$precio="$total1 ";
}
echo"$precio";
}
if ($res['fecha7'] != "") {
$start_date9 = ''.$res['fecha7'].'';
$end_date9 = ''.$res['fecha8'].'';
function check_in_range ($start_date_9, $end_date_9, $evaluame9) {
$start_ts9 = strtotime($start_date_9);
$end_ts9 = strtotime($end_date_9);
$user_ts9 = strtotime($evaluame9);
return (($user_ts9 >= $start_ts9) && ($user_ts9 <= $end_ts9));
}
if (check_in_range4($start_date_4, $end_date_4, $fecha_a_evaluar_)) {
$precio="$total1 ";
}
echo"$precio";
}