Hello everyone. I'm having a problem with passing data from one page to another. I have already tried for session and not very sure and I will explain the reason:
I have a news page that distributes them for a for $ arr [] where I embed the title, news body etc. Then, when entering a specific news (that read more), I have to give a SELECT in the database again and distribute the title, body etc of the news and this I do by the ID of it in the database. It turns out that to pass the ID of the news he clicked pro SELECT the other page I get all mixed up. In my attempts there was something of the sort:
1st saving the data in the variable: $ variable = array ("$ arr [2]")
2nd taking this data through the session: SELECT bla bla bla WHERE id = $ variable and it does not return the value of this variable I did more or less up, of course I opened the sessions and everything else kkkkkk
Anyway, thank you in advance!