Ver Mensaje Individual
  #9 (permalink)  
Antiguo 18/05/2009, 10:50
fumondj
 
Fecha de Ingreso: octubre-2006
Mensajes: 471
Antigüedad: 17 años, 6 meses
Puntos: 1
Respuesta: Como hago esto?

Cita:
Iniciado por dyegox Ver Mensaje
y asi¿

Código PHP:
<?php
            $id
=$_GET['g'];
             
$sql3="SELECT * FROM peliculas WHERE idGenero=$id";
$result3=mysql_query($sql3) or die('No hay generos.');
while(
$categres=mysql_fetch_assoc($result3)){
echo 
'<a href="'$categres['id']'">'.$categres['Titulo'].'</a>';

}
?>
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home1/sonidom1/public_html/miradivx/Categoria.php on line 224

linea 224:

Código PHP:
echo '<a href="'$categres['id']'">'.$categres['Titulo'].'</a>'
no consigo hacerlo funcionar ,que error hay??