prova cosi
Codice PHP:
// colore sfondo
if($dati >10 && $dati<15 ){
$r= 255;
$g= 200;
$b= 0;
// colore testo
$r1= 255;
$g2= 255
$b3= 255;
}
if($dati >15 && $dati<20 ){
$r= 200;
$g= 200;
$b= 100;
// colore testo
$r1= 255;
$g2= 255
$b3= 255;
}
// crea immagine 50*15
$im = imagecreate(50, 15);
// sfondo all' immagine
$background = imagecolorallocate($im, $r, $g, $b);
// testo color bianco
$textcolor = imagecolorallocate($im, $r1, $g2, $b3);
// valore testo
$txt = ("$dati1[2]");


Rispondi quotando