Hi, I need som help, please…
I’m using links with variables like this:
<a href="accueil.php?page=Equalizer">Equalizer</a>
With an associative area to secure them:
$checkPage = array('Series_Index' => 'series/series_index.php', 'Series_Record' => 'series/record.php', 'Equalizer' => 'series/equalizer.php'...
And another one to display pages titles:
$checkTitle = array('Series_Index' => 'Séries',
'Series_Record' => 'Fiche', 'Equalizer' => 'Equalizer'...
But now, I’m using a unique page to display the series details, getting infos from a database.
My links look like this:
<a href="accueil.php?page=Series_Record&series='.$row['seriesId'].'&title='.$row['seriesTitle'].'">'.$row['seriesTitle'].'</a>
series='.$row['seriesId']
to select a series by Id in the database
title='.$row['seriesTitle']
to be able to display the page title
But I couldn’t put these variables in my includes.php and titles.php files.
Therefore, if one enter a non existing Id in the address bar, that leads to a page
displaying php errors.
I wonder how to avoid these type of crash as I couldn’t use my associative table anymore.