non c'entra nulla con la tua domanda... ma piuttosto che usare 4 if di seguito, potresti usare uno switch:
Codice PHP:
while(mysql_fetch_assoc($res)){
switch($durata) {
case 'riposo':
echo "Il giocatore riposa. </br>"
break;
//etc etc
}
![]()
non c'entra nulla con la tua domanda... ma piuttosto che usare 4 if di seguito, potresti usare uno switch:
Codice PHP:
while(mysql_fetch_assoc($res)){
switch($durata) {
case 'riposo':
echo "Il giocatore riposa. </br>"
break;
//etc etc
}
![]()
Disegnatori e romanzieri d'Italia, visitate il mio sito, cerchiamo favolieri dark ed illustratori dark fantasy... http://www.neilgaimania.it