Re: [PHP-DB] How to display table columns

2004-04-25 Thread John W. Holmes
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 abc1m xyz 2f I

Re: [PHP-DB] How to display table columns

2004-04-25 Thread Marcjon Louwersheimer
Well, you would create a table like this echo "nameagesex"; Then, you would do a query (assuming you've already made a connection to your database)... $result = mysql_query("SELECT name,age,sex FROM database.usertable"); Then, run through the results... while ($row = mysql_fetch_assoc($result)