请教各位大侠,什么版本的MySql支持子查...
如题。
作者 blueonly 发布于 0000-00-00 分类:php基础编程
用fputs($pFileBar,$sLineText);写的时后
" 都变成了 /" ,怎么才能正确的写入呀?
代码是这样的
function strFormat($sText)
//把串变成数据文件需要的格式
{
$sText=str_replace("
","blueDefineCR",$sText);
$sText=str_replace("|","blueDefinePerpendicular",$sText);
return $sText;
}
$sTitle=strFormat($sTitle);
$sContent=strFormat($sContent);
addNews($sBar,$sTitle,$sContent);
逛论坛交流:关于向文件写串的小麻烦~~
顶了半天没人看,郁闷~~~
顶呀~~
帮帮~~~
>_<
function addNews($sBar,$sTitle,$sContent)
//向sBar栏目中加入内容
{
if($pFileBar=fopen($sBar,"a+"))
{
$sLineText=$sTitle."|".$sContent."|"."日期"."
";
fputs($pFileBar,$sLineText);
fclose($pFileBar);
return true;
}
else
{
return false;
}
}
5 条回复
回复