MySQL Forums
Forum List  »  Newbie

Re: Simple Table
Posted by: David Fells
Date: March 24, 2005 10:29AM

Check out the PHP functions mysql_num_fields and mysql_field_name

print '<tr>';
for ($i = 0, $ii = mysql_num_fields($result); $i < $ii; $i++ )
{
print '<th>'.mysql_field_name($result, $i).'</th>';
}
print '</tr>';

Options: ReplyQuote


Subject
Written By
Posted
March 24, 2005 09:15AM
March 24, 2005 10:07AM
Re: Simple Table
March 24, 2005 10:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.