Re: Getting rid of extra lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Miller, Terion wrote:
> 
> 
> On 7/29/09 2:19 PM, "Jim Lucas" <lists@xxxxxxxxx> wrote:
> 
> $clean = preg_replace('|\s+|', ' ', $input);
> 
> Hi Jim,
> The extra whitespace lines are in the data store, coming from it I'm going to try your method but is there a way to not have mySQL store it with so many lines (this is data being screen scraped and put in the db)
> My code was at the beginning of this post of how I was inserting it.
> 
> Thanks
> And Chocolate huh....
> Terion
> 

If the method that I give you works on the out from the db to the
browser, the should be no reason you cannot adapt whatever script you
are using for scrapping to use this function when it inserts the data
into the db.

Jim


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux