J'ai trouvé ce qu'il me faut:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?php
$monthCheck = date('F');
$dayCheck = date('d');
$fp = fopen('http://multi-grafe.com/mapp/wp-content/themes/lamapp/date.csv', 'r');
// Headrow
$head = fgetcsv($fp, 4096, ';', '"');
// Rows
while($column = fgetcsv($fp, 4096, ';', '"'))
{
$column = array_combine($head, $column);
echo $column['fichier'];
}
if ($monthCheck == $column['mois'] && $dayCheck == $column['date']) {
echo $column['fichier'];
} else {
}
?> |
Mais ça ne marche pas...peux importe la date affiché dans $column['date'] il affiche le résultat de $column['fichier']
Et j'aimerais que le code load le fichier css de $column['fichier']:
<link href="<?php bloginfo('template_url'); ?>/css/<?php $column['fichier'] ?>" rel="stylesheet" type="text/css" media="screen" />
Partager