bon alors personne ???
- bon voilà le lien complet avec les variables:
$reqCOMMENT = mysql_query("SELECT id FROM $TBL_COMMENTAIRES WHERE id_news='$id'" );
$resCOMMENT = mysql_num_rows($reqCOMMENT);
if($resCOMMENT>='2'
{ $COMMENT = "<a href=\"news/read_comment.php3?id_news=$id\" class=\"plein\">$resCOMMENT $CommentsTitle</a>"; }
elseif($resCOMMENT=='1'
{ $COMMENT = "<a href=\"news/read_comment.php3?id_news=$id\" class=\"plein\">$UnCommentTitle</a>"; }
else{ $COMMENT = "<a href=\"news/read_comment.php3?id_news=$id\" class=\"plein\">$NoCommentTitle</a>"; }
- puis voilà une partie de mon switch:
<?
switch ($cat){
case "news": $page_principale= "index.php"; break;
case "archives": $page_principale= "archives.php"; break;
default: $page_principale= "news.php"; break;
}
include($page_principale);
?>
comment je fais pour mettre ce lien dans le switch ??
pour que je puisse include read_comment.php3?id=1 (ou toutes les autres valeurs de $id ) dans la page principale ??