You are here: Re: Retrieving fields name from mysql « PHP Programming Language « IT news, forums, messages
Re: Retrieving fields name from mysql

Posted by Mary Pegg on 04/10/06 19:52

Mike Youell wrote:

> As far as I'm aware there is no way to do it accept use the "describe"
> function of mysql (or sql or whatever).

http://uk2.php.net/function.mysql-list-fields explains all.

You could also, I expect, use "select * from table limit 0,1"
and then array_keys() on the resulting row.

 

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

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