Re: alternative to mysql_field_name()

From: Date: Wed, 22 Sep 2004 06:29:37 +0000
Subject: Re: alternative to mysql_field_name()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197518@lists.php.net to get a copy of this message
On Tue, 21 Sep 2004 22:01:02 +0100, Luke <luke@lukem.co.uk> wrote: > however, i'd like to add more meaningful names as the field name > headings in the excel file. can anyone suggest how i can write a list of > tab separated headings into $header? > If you're talking about hard coding the header, it's not difficult to do. Just create an array with your desired field names, and print it out using the join function. Something like: $fields = array ('field1', 'field2', 'field3'); $header = join ($fields, "\t") . "\n"; I haven't double checked the syntax, but that should be pretty close.

« previous php.general (#197518) next »