-
- $conn = @mysql_connect("localhost","root","") or die("Error connection");
- mysql_select_db("nettext",$conn);
- mysql_query( "set names 'gbk'");
- (key code)
- function htmlcode($contect){
- $contect = str_replace("n", "
", str_replace(" ", " ", $contect) );
- $contect = str_replace("Hello", "***", $contect);//Block keywords
- return $contect;
- }
- ?>
Copy code
2, paging Code:
[code]
|