RE: [PHP] ID problem
| From: | Tim | Date: | Wed, 28 Feb 2007 15:03:20 +0000 |
| Subject: | RE: [PHP] ID problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249598@lists.php.net to get a copy of this message | ||
> -----Message d'origine-----
> De : tedd [mailto:tedd@sperling.com]
> Envoyé : mercredi 28 février 2007 15:54
> À : Delta Storm; php-general@lists.php.net
> 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..