Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/10/2009, 09:54
TavoRossal
 
Fecha de Ingreso: octubre-2009
Mensajes: 100
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Como dentro de un if meter un Switch

He puesto el ; antes del switch
;switch ($row->icon_type)
{
case'smallicon.png':
echo'<div id="starses"></div>';
break;
case'standard.png':
echo'<div id="starses"><img src="images/properties/starsgray.png" width="127" height="33" /></div>';
break;
case'largeicon.png':
echo'<div id="starses"><img src="images/properties/stars.png" width="127" height="33" /></div>';
break;
lo pongo tambien despues del break?
pues ahora me da el siguiente error
Parse error: syntax error, unexpected T_ELSE in XXXX on line 138