Re: showing any mysql query in a table, help!
| From: | Jim Lucas | Date: | Sun, 19 Mar 2006 07:29:28 +0000 |
| Subject: | Re: showing any mysql query in a table, help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232212@lists.php.net to get a copy of this message | ||
pgaio@portugalmail.pt wrote:
Ok... it has to be a way to do such a thing. I do i get the column names? I can get the number of columns using mysql_num_fields() right? but what if i want to get the columns name? Wich functtion and how should i use? the goal is to make a function that prints a table that prints the result of any query in a html table. thx Pedro mysql_list_fields() should do the trick for you.check out the function in the php documentation the first couple examples in the user notes area should give you some good alternatives if this function does not work for you. Jim