Bonjour, j'ai un script en php où les valeurs dans la base sont en minuscules, j'aimerai qu'elles apparaissent sur mon site en majuscule, je dois donc prendre
la fonction mb_strtoupper, je n'arrive pas à la mettre dans mon bout de code.
Merci de votre aide
Cdt
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 <select class="Style14" name="tybiref"> <option value="0"><?php echo $lg[1]; ?></option> <?php $order="1"; if($lang=="en"){ $order="2"; } if($lang=="it"){ $order="3"; } if($lang=="de"){ $order="4"; } if($lang=="su"){ $order="5"; } if($lang=="fi"){ $order="6"; } $SQL="SELECT * FROM types_de_biens WHERE tybisuppr=0 ORDER BY tybinom".$order; $affichage=mysql_query($SQL); $nb=mysql_numrows($affichage); if($nb){ while($ligne=mysql_fetch_array($affichage)){ $tybiref2=stripslashes($ligne["tybiref"]); $tybinom=stripslashes($ligne["tybinom1"]); $tybinom2=stripslashes($ligne["tybinom2"]); $tybinom3=stripslashes($ligne["tybinom3"]); $tybinom4=stripslashes($ligne["tybinom4"]); $tybinom5=stripslashes($ligne["tybinom5"]); $tybinom6=stripslashes($ligne["tybinom6"]); if($lang=="en"){ $tybinom=$tybinom2; } if($lang=="it"){ $tybinom=$tybinom3; } if($lang=="de"){ $tybinom=$tybinom4; } if($lang=="su"){ $tybinom=$tybinom5; } if($lang=="fi"){ $tybinom=$tybinom6; } echo "<option value=\"".$tybiref2."\""; if($tybiref==$tybiref2){ echo " selected"; } echo ">".$tybinom."</option>"; } } ?> </select>
Partager