Affichage de variable
Bonjour,
j'aimerais pouvoir additionner des variables et cette addition je la mette dans une autre variable. Je sais pas comment m'expliquer. Mais la syntaxe que je vais vous montrer ne fonctionne pas car il m'affiche rien
Syntaxe :
$resSelIndivTotal = ($resSelIndivMais)+($resSelIndivBle)+($resSelIndivBledur)+($resSelIndivProteagineux)+
($resSelIndivSorgho)+($resSelIndivTabac)+($resSelIndivProduclegum)+$resSelIndivTournesol+
$resSelIndivBletendre+$resSelIndivOrge+$resSelIndivPrairies+$resSelIndivAutres);
$verifinfo = mysql_num_rows($resSelIndivTotal );
<td> <font color="red"><BIG><strong>Attention</strong></font> sur <?php echo $nbIrrigant; ?>
irrigants,<?php echo $verifinfo; ?> irrigants
à avoir cultivés du maïs pour l'année <?php echo $annee; ?></BIG></td>
POuvez-vous m'aider???
Merrci d'avance
j'aimerais pouvoir additionner des variables et cette addition je la mette dans une autre variable. Je sais pas comment m'expliquer. Mais la syntaxe que je vais vous montrer ne fonctionne pas car il m'affiche rien
Syntaxe :
$resSelIndivTotal = ($resSelIndivMais)+($resSelIndivBle)+($resSelIndivBledur)+($resSelIndivProteagineux)+
($resSelIndivSorgho)+($resSelIndivTabac)+($resSelIndivProduclegum)+$resSelIndivTournesol+
$resSelIndivBletendre+$resSelIndivOrge+$resSelIndivPrairies+$resSelIndivAutres);
$verifinfo = mysql_num_rows($resSelIndivTotal );
<td> <font color="red"><BIG><strong>Attention</strong></font> sur <?php echo $nbIrrigant; ?>
irrigants,<?php echo $verifinfo; ?> irrigants
à avoir cultivés du maïs pour l'année <?php echo $annee; ?></BIG></td>
POuvez-vous m'aider???
Merrci d'avance
Configuration: Windows 2000 Firefox 2.0.0.6