RE: [PHP-DB] Table from an array?
| From: | Bastien Koert | Date: | Thu, 03 Feb 2005 00:06:40 +0000 |
| Subject: | RE: [PHP-DB] Table from an array? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38459@lists.php.net to get a copy of this message | ||
Sure you could, the trick would be indentifiying the column data types, but perhaps you could put those in column name definition.
ie user_id int(10), username varchar(50), etc
bastien
From: "Chris Payne" <cjp@planetoxygene.com> To: <php-db@lists.php.net> Subject: [PHP-DB] Table from an array? Date: Wed, 2 Feb 2005 16:41:42 -0500 Hi there everyone Is it possible to create a database table from the first line of a CSV file? What I mean is, how would you create the table columns based on the CSV files columns? This would really help me out, as some times the table column counts change on data I have to import, so it would be nice to have a flexible DB structure rather than a static one. Chris -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005