RE: [PHP-DB] Table from an array?

2005-02-02 Thread Bastien Koert
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" <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Table from an array? Date: Wed,

Re: [PHP-DB] Table from an array?

2005-02-02 Thread Jason Wong
On Thursday 03 February 2005 05:41, Chris Payne wrote: > 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 fileâs columns? Parse the first line and extract the column names, construct a suitabl

[PHP-DB] Table from an array?

2005-02-02 Thread Chris Payne
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 file’s columns? This would really help me out, as some times the table column counts change on data I have to import, so it wou