php文字转换示例代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
include_once(‘arconvert.php‘);

$link = mysql_connect(‘localhost‘, ‘root‘, ‘‘) or die(‘A error occured: ‘ . mysql_error());
echo ‘Connected successfully <br /> <br />‘;
mysql_select_db(‘kok‘);
mysql_query("SET NAMES ‘utf8‘");


$query = ‘SELECT * FROM pre_dx2forum_post limit 70000,10000‘;
$result = mysql_query($query) or die(‘Query failed: ‘ . mysql_error());

$san = 1;
while($row = mysql_fetch_array($result)){

	$id = $row[‘pid‘];
	$name = $row[‘message‘];
	$name = $name . "?" . artokz($name);
	echo $id . " - " . $san . "<br />";
	//mysql_query("UPDATE pre_dx2forum_post SET message= ‘" . $name . "‘ where pid = " . $id);
	$san = $san + 1;
}

?>
</body>
</html>

  

php文字转换示例代码

上一篇:Linux中./configure,make,make install的作用


下一篇:在迁移邮箱时, Mailbox Size Exceeds Target Quota 2.3GB错误的解决