Re: [PHP] check for \n

2002-11-18 Thread Vincent Vandemeulebrouck
> > $sql = 'SELECT id,ST FROM ccl.ccl_main'; > > ... > > $news = mysql_query($sql); > > while ($mydata = mysql_fetch_object($news)) > > { > > if ???$mydata->ST? > > echo "$mydata->id - $mydata->ST"; > > } > > Use strstr() with "\n" as the needle. Check out the "String funct

Re: [PHP] check for \n

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:37, John Taylor-Johnston wrote: > Like I have a clue :) > > I want to convert some fields from TEXT to VARCHAR(255). > (Going from a textarea to an input type=text) > I've checked the length of each $mydata->ST, so I won't be losing data. > What I am worried about is