after everything to fix it, I have no more ideas and came here to find some help.
My $_SESSION isn't working inside an SELECT of postgres, but when I put like this it's OK:
The genre you selected is:
<?php echo $_SESSION[genero];?>
.
But inside my pg_query, it doesn't work and I know it is the $_SESSION because if I change de $_SESSION for it's value it's OK. Anybody that knows how to answer this question?
EDIT: tried put the value by $_GET and still the same problem. I don't know why it's happening, because I already did this before once... And both GET and SESSION shows the value if echo them.