Sujet : [PHP] probleme de varriable ! |
gigigan |
Code :
- while($j<8){
- $j++;$i=-1;
- while($i<7){
- $i++;$c++;
- if($c=="2"||$c=="4"||$c=="6"||$c=="8"||
- $c=="9"||$c=="11"||$c=="13"||$c=="15"||
- $c=="18"||$c=="20"||$c=="22"||$c=="24"||
- $c=="25"||$c=="27"||$c=="29"||$c=="31"||
- $c=="34"||$c=="36"||$c=="38"||$c=="40"||
- $c=="41"||$c=="43"||$c=="45"||$c=="47"||
- $c=="50"||$c=="52"||$c=="54"||$c=="56"||
- $c=="57"||$c=="59"||$c=="61"||$c=="63" ){
- $couleur="AF503D";
- }else{
- $couleur="ffffcc";
- }
- }
- }
- voila comment j ai fait ( ca marche )
|
je pense que ta methode marche aussi, mais j ai pas eu acces au net avant... |