Re: Using php to insert ' ' in between fields...

From: Date: Tue, 29 Aug 2000 11:52:34 +0000
Subject: Re: Using php to insert ' ' in between fields...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14104@lists.php.net to get a copy of this message
Did you try str_replace(","," ,",$rec); Sam wrote: > Hi all, > > I have a text file that has been derived from exporting from MS-Access. > It will be uploaded to my website via a web page. > I have been able to produce out put like this... > > HQZ,1,HQZ50,1,Quito,00/8/20 00:00:00,La Paz,00/10/1 00:00:00,£2120.00,0, > HEP,1,HEP50,1,Quito,00/8/20 00:00:00,Lima,00/9/9 00:00:00,£1095.00,0, > > This is an example of two records. > > Is there any way of using PHP to place each field inbetween ' ', so that it > can be entered into a mySQL database? > > > Thanks in advance > Sam Rose

« previous php.general (#14104) next »