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>';
}
?>