forked from science-ation/science-ation
replace both \r and \n when exporting
This commit is contained in:
parent
3a26881149
commit
e19cb49b3e
@ -93,6 +93,8 @@ $q=mysql_query("SELECT
|
|||||||
firstname");
|
firstname");
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
|
$expertise_other=str_replace("\n"," ",$r->expertise_other)
|
||||||
|
$expertise_other=str_replace("\r","",expertise_other)
|
||||||
$table['data'][]=array(
|
$table['data'][]=array(
|
||||||
$r->id,
|
$r->id,
|
||||||
$r->lastname,
|
$r->lastname,
|
||||||
@ -117,7 +119,7 @@ while($r=mysql_fetch_object($q))
|
|||||||
$r->years_national,
|
$r->years_national,
|
||||||
$r->willing_chair,
|
$r->willing_chair,
|
||||||
$r->attending_lunch,
|
$r->attending_lunch,
|
||||||
str_replace("\n"," ",$r->expertise_other)
|
$expertise_other
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user