RE: [PHP] ID problem





-----Message d'origine-----
De : tedd [mailto:tedd@xxxxxxxxxxxx]
Envoyé : mercredi 28 février 2007 15:54
À : Delta Storm; php-general@xxxxxxxxxxxxx
Objet : Re: [PHP] ID problem

At 10:24 AM +0100 2/28/07, Delta Storm wrote:
The problem is:

I have a index.php that takes the news from the database and
publishes
them. And by the end of every news on index.php I have a link ('<a
href="showfullnews.php?id=$id">Show full news</a>')
Is this possibly a quote issue?

echo '<a href="showfullnews.php?id=$id">Show full news</a>';

Will not evaluate $id

Whereas echo '<a href="showfullnews.php?id=' . $id . '">Show full news</a>';


Will evaluate $id..
.