-
-
$conn = @mysql_connect("localhost","root","") or die("错误连接");
- mysql_select_db("nettext",$conn);
- mysql_query("set names 'gbk'");
- (关键代码)
- function htmlcode($contect){
- $contect = str_replace("\n", "
", str_replace(" ", " ", $contect));
- $contect = str_replace("你好", "***", $contect);//屏蔽关键字
- return $contect;
- }
- ?>
复制代码
2,分页代码:
[code]
|