Re: Data exports w/ PHP & MySQL
| From: | Brian Clark | Date: | Thu, 14 Dec 2000 21:57:24 +0000 |
| Subject: | Re: Data exports w/ PHP & MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30368@lists.php.net to get a copy of this message | ||
Hello Glenn,
(GA == "Glenn Antoine") rantoine@esysdesign.com writes:
GA> Some of the things that I have to keep in mind are: Field width
GA> for each column Starting point for each column Justification
GA> within the field (left or right justified) Some need to be zero
GA> filled
<snip>
GA> Field Description..............Field Length.........Field Position
GA> Address-1...........................25....................190
GA> Address-2...........................25.................... 215
GA> City ....................................15.....................240
GA> State.....................................2..................... 255
GA> Zip Code............................10......................257
GA> Phone.................................12......................267
GA> Any suggestions/recommendations would be greatly appreciated. Thanks in
GA> advance.
sprintf() and printf() are your friends.
http://www.php.net/manual/html/function.sprintf.html
(has information on padding, width etc.)
http://www.php.net/manual/html/function.printf.html
GA> Glenn
-Brian
--
Man who pee on electric fence receive shocking news.