par
Morkem » 28 juil. 2006, 16:43
Ba ecoute je vois pas trop....
Un lien est de la forme
<a href="le_lien">le_nom_du_lien</a>
Je rajoute donc le lien
<a href="index.php?file=News&op=index_comment&news_id=1">le_nom_du_lien</a>
Je rajoute la fonction pour trouver l'id de la news
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "">le_nom_du_lien</a>
Comme il y a 2 guillemets je rajoute un \
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">le_nom_du_lien</a>
Et enfin je change le nom du lien par la fonction
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">" . _NEWSCOMMENT . "</a>
Devant je claque la fonction de rappel pour la rappeler plus tard
$comment = <a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">" . _NEWSCOMMENT . "</a>
Et vala

Ba ecoute je vois pas trop....
Un lien est de la forme
<a href="le_lien">le_nom_du_lien</a>
Je rajoute donc le lien
<a href="index.php?file=News&op=index_comment&news_id=1">le_nom_du_lien</a>
Je rajoute la fonction pour trouver l'id de la news
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "">le_nom_du_lien</a>
Comme il y a 2 guillemets je rajoute un \
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">le_nom_du_lien</a>
Et enfin je change le nom du lien par la fonction
<a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">" . _NEWSCOMMENT . "</a>
Devant je claque la fonction de rappel pour la rappeler plus tard
$comment = <a href="index.php?file=News&op=index_comment&news_id=" . $data['id'] . "\">" . _NEWSCOMMENT . "</a>
Et vala :(