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 briansmccabe on 12/20/05 00:05

> ... so $query6 just contains the SQL string, and not a MySQL result set
> resource identifier. You're not actually executing the SQL anywhere, or if you
> are in the rest of the code, you haven't done the error checking there.

I have this part working now, thanks to your help.

>
> >later on the page:
> >
> >echo $result6[quant]
>
> This should be: $result6['quant'].
>
> See:
>
> http://www.php.net/manual/en/language.types.array.php#language.types.array.donts
>

So if I am echoing the result in between strings of HTML, I am having a
hard time knowing / remembering how to "escape" the single-quote marks
inside the result brackets. Does that make sense?

Thanks

Brian

 

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

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