You are here: Re: displaying the result of a COUNT query in MySQL « PHP Programming Language « IT news, forums, messages
Re: displaying the result of a COUNT query in MySQL

Posted by Andy Hassall on 12/20/05 00:56

On 19 Dec 2005 14:08:15 -0800, briansmccabe@gmail.com wrote:

>> This should be: $result6['quant'].
>>
>> See:
>>
>> http://www.php.net/manual/en/language.types.array.php#language.types.array.donts
>
> I have tried to figure out how to single-quote the contents of the []
>but when it is concatenated in between strings of HTML, it goofs things
>up. I cannot remember how to do that. I tried a few things I noticed in
>the page you link to above, but I am not getting very far.

Use the "curly brace" format within a string:

echo "{$result6['quant']}";


http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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