Reply to Re: Counting Database Fields

Your name:

Reply:


Posted by Colin McKinnon on 11/19/56 11:47

TristaSD wrote:

> I am trying to build a sortable list of rows pulled from MySQL. I need
> a programmatic header that would allow sorting of records. Because
> order in which the fields are displayed might change, I need to learn
> how to refer to field names programmatically.
>

if you do mysql_fetch_assoc() you'll get an associative array where the keys
are the attributes from the query.

You can also treat the output of 'DESC mytable' in much the same way you
would 'SELECT fld1, other FROM some_data'

HTH

C.

[Back to original 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

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