RE: [PHP-DB] dropping one word from column entries

2002-05-30 Thread Ed Gorski
there are a number of >substring-style things available, string position etc. > >HTH > >Beau > >// -Original Message- >// From: Ed Gorski [mailto:[EMAIL PROTECTED]] >// Sent: Thursday, 30 May 2002 12:09 AM >// To: Jen Swofford; php-db@lists. php. net >// Subjec

RE: [PHP-DB] dropping one word from column entries

2002-05-29 Thread Beau Lebens
]] // Sent: Thursday, 30 May 2002 12:09 AM // To: Jen Swofford; php-db@lists. php. net // Subject: Re: [PHP-DB] dropping one word from column entries // // // use: // // $name="Mouse Housing Products"; // $name=str_replace("Products","",$name); // // also the RTFM(

Re: [PHP-DB] dropping one word from column entries

2002-05-29 Thread Stuart Dallas
Ed Gorski <[EMAIL PROTECTED]> wrote: > use: > > $name="Mouse Housing Products"; > $name=str_replace("Products","",$name); > > also the RTFM() function works too I'd also trim it to get rid of any extra spaces that are left: $name = trim(str_replace("Products","",$name)); -- Stuart -- PHP

Re: [PHP-DB] dropping one word from column entries

2002-05-29 Thread Ed Gorski
use: $name="Mouse Housing Products"; $name=str_replace("Products","",$name); also the RTFM() function works too ed At 11:06 AM 5/29/2002 -0500, Jen Swofford wrote: >I'm having a problem with this and suppose I'm looking for a handout. :| > >I am displaying names of product categories. The na