Ok
I have
1/ a db, called tb_aide , containing following 3 fields (id, theme, aide) with 30 records containing each an help explanation
2/ All the pages of my website are containing (or not, but when necessary) contextual id references ($theme = array(1,2,3,4)
3/ My link to the record is
if (isset($theme)) {
$t = implode(',',$theme);
$lien = "aide.php?theme=".$t;
$aide = '<a href="'.$lien.'">AIDE</a>';
} else {
$aide = "";//if no array in the page because not necessary
}
3/ A page aide.php containing exploding code
$t = explode(',',$_GET['theme']);
$n = count($t);
if ($n == 1) {
$where = "id = ".$t[0];
} else {
$where = "id = ".$t[0];
for ($i=1;$i<$n;$i++) {
$where .= " OR id=".$t[$i];
}
}
and request
SELECT aide, theme, id FROM tb_aide WHERE id = 1 OR id=2 OR id=17 OR id=18 OR id=23