Can somebody help me? This is my code:
foreach ($db->query('SELECT * FROM '. $_SESSION['url_recuperee'].' WHERE id=' . $article_id) as $data):
..... Here other scripts
endforeach;
I want to acceed dynamically to my database tables. And the variable $_SESSION['url_recuperee']
represents the name of each table according as I hget connected to one of the table.
When I am in local (on my computer), every is good. But when I am on the hosting, I have the error:
Notice: Undefined variable: _SESSION in /home/u160916497/public_html/vue/parole_divine/article.php on line 33. THnaks for the help.