$nbjours = (round((strtotime($date_fin) - strtotime($date_debut))/(60*60*24)-1))+1;
<?php $date_debut = '2012/12/06'; $date_fin = '2012/12/12'; $nbjours = (round((strtotime($date_fin) - strtotime($date_debut))/(60*60*24)-1))+1; echo $nbjours; ?>
$nbjours = (round((strtotime($date_fin) - strtotime($date_debut))/(60*60*24)));
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php $date_debut = '2012/12/06 00:00:00'; $date_fin = '2012/12/12 23:59:59'; ?>
$nbretour3=mysql_num_rows($resultat3);
echo ''; print_r($nbretour3); echo ' ';
echo ''; $data_resultat3 = mysql_fetch_array($resultat3); print_r($nbretour3); echo ' '; while ($data_resultat3 = mysql_fetch_array($resultat3)){ ...
<?php $t = new self; $select = $t->select(); $select->where("ma_table.id = :id"); $select->bind(array(':id' => $id)); $o_ma_table = $t->fetchAll($select); if (isset($o_ma_table)) $a_ma_table = (array) $o_ma_table->toArray();
<?php print_r($a_ma_table);
Array ( [0] => Array ( ( [id] => 1 [language] => fr [name] => Toto ) ) [1] => Array ( ( [id] => 2 [language] => fr [name] => Einstein ) ) )
<?php $data_resultat3['id'].' le '.$date_affiche_final.' :