Ciao,
potresti fare così:

Codice PHP:
<?php

$dim 
"width='22' height='22' border='0'>";

switch(
$row[generale])
{
    case 
'A':
        
$stato_generale "[img]images/green-w.gif[/img]