replace both \r and \n when exporting

This commit is contained in:
james 2005-03-29 21:08:47 +00:00
parent 3a26881149
commit e19cb49b3e

View File

@ -93,6 +93,8 @@ $q=mysql_query("SELECT
firstname");
while($r=mysql_fetch_object($q))
{
$expertise_other=str_replace("\n"," ",$r->expertise_other)
$expertise_other=str_replace("\r","",expertise_other)
$table['data'][]=array(
$r->id,
$r->lastname,
@ -117,7 +119,7 @@ while($r=mysql_fetch_object($q))
$r->years_national,
$r->willing_chair,
$r->attending_lunch,
str_replace("\n"," ",$r->expertise_other)
$expertise_other
);
}