You are here: Re: Help with displaying MySQL query results « PHP Programming Language « IT news, forums, messages
Re: Help with displaying MySQL query results

Posted by The Natural Philosopher on 11/14/07 15:54

Sanders Kaufman wrote:
> "Lloyd Harold" <lloyd@harold.invalid> wrote in message
> news:1i7knn8.xncn8ogzxqv9N%lloyd@harold.invalid...
>
>> I've tried the code and am seeing this error:
>>
>> expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
>>
>> "<p><a href='/details.php?id=$data['id']'>$data['name']</a></p>\n";
>
> You gotta enclose complex variables like "$data['id']" in curly-brackets
> when you use them inside a string like that.
>
> Thus, it should be:
> "<p><a href='/details.php?id={$data['id']}'>{$data['name']}</a></p>\n";
>
>

or use backlslashes...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация