Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/12/2009, 10:06
mariomon17
 
Fecha de Ingreso: noviembre-2009
Mensajes: 846
Antigüedad: 14 años, 6 meses
Puntos: 34
Switch, ¿que hay mal?

Código HTML:
<head>
<title><?php echo $title ?> - Acuario Arrecife</title>
</head>

<body>

  <?php
   $gen = $_GET['gen'];
 
   switch($gen) {
      case 'acuar': 
         $title = Productos acuario;
         break;
      case 'fish':  
         $title = Productos peces;
         break;
      case 'cats': 
         $title = Productos gatos;
         break; 
      case 'peluq':  
         $title = Productos Peluqueria;
         break;
      default:
         $title = ;
   }
?>
  
  
<p><a href="?gen=acuar">Acuario</a></p>
<p><a href="?gen=fish">Peces</a></p>
<p><a href="?gen=cats">Gatos</a></p>
<p><a href="?gen=peluq">Peluqueria </a></p>
</body>
</html> 
Me aparece este error:
Parse error: parse error in C:\Xampp\htdocs\index.php on line 16

¿Que hay mal?
Gracias,