Re: Str_replace????
| From: | Chris Hayes | Date: | Tue, 22 Apr 2003 17:59:25 +0000 |
| Subject: | Re: Str_replace???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144883@lists.php.net to get a copy of this message | ||
At 19:49 22-4-03, you wrote:
Hi I have a table as csv? Now i want to make a table. I tried to do is with a workaround put that works not well. I could make a str_replace but that worked not well. Anyone who give me advice how to solve the problem. Thanks Steve I give you quite a good chance to find a solution by looking on the net or in this list for 'insert' , 'file' and 'csv'.I think one would read in the file line by line and do an explode() on each line, with the csv field delimiter as the division marker. This will give you an array of the fields of one line, with which you can build a database insert.