At 8:16 PM -0300 2/23/08, Emiliano Boragina wrote:
I want to see all fields name of the DB and only in one TRÂ… how can I do
that (in code please)?

$result = mysql_query($query) or die(report($query,__LINE__ ,__FILE__));
$columns = mysql_num_fields($result);
for($i = 0; $i <= $columns; $i++)
        {
        echo("<th> mysql_field_name($result, $i)</th>");
        }

This works for me -- however, it could be improved.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to