RE: ID problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Message d'origine-----
> De : tedd [mailto:tedd@xxxxxxxxxxxx] 
> Envoyé : mercredi 28 février 2007 15:54
> À : Delta Storm; php-general@xxxxxxxxxxxxx
> Objet : Re:  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..

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux