For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > April 2004 > How to display table columns









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to display table columns
Andy Amol

2004-04-27, 12:20 am

hi,
I want to display the table coulumns along with those values below it. I am only able to display the table values, now I want to diplay the corresponding table attribut above the value.

eg : name age sex
abc 1 m
xyz 2 f

I want to display name, age and sex.

I am using mysql as database.

thanks in advance.



---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
Andy Ladouceur

2004-04-27, 12:20 am

I think what you may be looking for is the DESCRIBE command. It allows
you to get information about table columns.

http://dev.mysql.com/doc/mysql/en/DESCRIBE.html

Andy

Andy Amol wrote:
> hi,
> I want to display the table coulumns along with those values below it. I am only able to display the table values, now I want to diplay the corresponding table attribut above the value.
>
> eg : name age sex
> abc 1 m
> xyz 2 f
>
> I want to display name, age and sex.
>
> I am using mysql as database.
>
> thanks in advance.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com