Probléme php condition
Résolu/Fermé
fm825
Messages postés
522
Date d'inscription
samedi 3 mai 2008
Statut
Membre
Dernière intervention
13 septembre 2014
-
10 nov. 2009 à 20:50
fm825 Messages postés 522 Date d'inscription samedi 3 mai 2008 Statut Membre Dernière intervention 13 septembre 2014 - 10 nov. 2009 à 21:16
fm825 Messages postés 522 Date d'inscription samedi 3 mai 2008 Statut Membre Dernière intervention 13 septembre 2014 - 10 nov. 2009 à 21:16
A voir également:
- Probléme php condition
- Excel cellule couleur si condition texte - Guide
- Easy php - Télécharger - Divers Web & Internet
- Excel condition ou - Guide
- Expert php pinterest - Télécharger - Langages
- Excel champ calculé avec condition - Forum Excel
4 réponses
PhP
Messages postés
1770
Date d'inscription
lundi 11 décembre 2000
Statut
Membre
Dernière intervention
23 décembre 2009
606
10 nov. 2009 à 20:56
10 nov. 2009 à 20:56
Bsr
parce que la syntaxe n'est pas correcte :-)
Tu peux écrire :
ou encore en utilisant un if:
Au choix
parce que la syntaxe n'est pas correcte :-)
Tu peux écrire :
$pseudo = ($code == 000) ? $pseu : "invite".rand(1,1000);
ou encore en utilisant un if:
if ($code == 000) { $pseudo = $pseu; } else { $pseudo = "invite".rand(1,1000); }
Au choix
fm825
Messages postés
522
Date d'inscription
samedi 3 mai 2008
Statut
Membre
Dernière intervention
13 septembre 2014
36
10 nov. 2009 à 21:01
10 nov. 2009 à 21:01
Ok je m'y suis pris à l'envers merci
PhP
Messages postés
1770
Date d'inscription
lundi 11 décembre 2000
Statut
Membre
Dernière intervention
23 décembre 2009
606
10 nov. 2009 à 21:11
10 nov. 2009 à 21:11
Pour l'explication : https://www.commentcamarche.net/contents/787-php-structures-conditionnelles
fm825
Messages postés
522
Date d'inscription
samedi 3 mai 2008
Statut
Membre
Dernière intervention
13 septembre 2014
36
10 nov. 2009 à 21:16
10 nov. 2009 à 21:16
Merci