Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1153157

    i tried different plug in and it’s impossible for me to use my own php code
    please help
    it’s a really basic code :

    $annee = date(‘Y’);
    $semaine = date(‘W’);
    $numsem =$semaine;
    $mois_brut = date(‘m’);
    $jour_brut = date(‘D’);
    $jour_mois = date(‘d’);
    $date = new DateTime();
    $date ->setISOdate($annee, $semaine);
    $date1 = date(‘d-m-Y’);

    if($mois_brut==’01’) {
    return ‘Janvier’;
    } elseif($mois_brut==’02’) {
    return ‘Février’;
    } elseif($mois_brut==’03’) {
    return ‘Mars’;
    } elseif($mois_brut==’04’) {
    return ‘Avril’;
    } elseif($mois_brut==’05’) {
    return ‘Mai’;
    } elseif($mois_brut==’06’) {
    return ‘Juin’;
    } elseif($mois_brut==’07’) {
    return ‘Juillet’;
    } elseif($mois_brut==’08’) {
    return ‘Août’;
    } elseif($mois_brut==’09’) {
    return ‘Septembre’;
    } elseif($mois_brut==’10’) {
    $moisfrance=’Octobre’;
    } elseif($mois_brut==’11’) {
    return ‘Novembre’;
    } elseif($mois_brut==’12’) {
    return ‘Décembre’;
    };

    if($jour_brut==’Mon’) {
    return ‘Lundi’;
    } elseif($jour_brut==’Tue’) {
    return ‘Mardi’;
    } elseif($jour_brut==’Wed’) {
    return ‘Mercredi’;
    } elseif($jour_brut==’Thu’) {
    $jourfrance=’Jeudi’;
    } elseif($jour_brut==’Fri’) {
    return ‘Vendredi’;
    } elseif($jour_brut==’Sat’) {
    return ‘Samedi’;
    } elseif($jour_brut==’Sun’) {
    return ‘Dimanche’;
    };

    ?>
    <CENTER>
    <H2>-SEMAINE : <?php echo $numsem; ?>-</H2></CENTER>

    regards

    #1153170

    resolved ok now :)

    #1153249

    Hi,

    Great, I’m glad that you got it working and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.