$host="localhost";
$usr="xxxxx";
$pwd="xxxxx";
$db="xxxxxx";
$link = mysql_connect($host, $usr, $pwd);
mysql_select_db($db);
mysql_query('SET NAMES "gb2312"');
if( mysql_error() ) { print "Database ERROR: " . mysql_error(); }
$query = "INSERT INTO ch VALUES ('034',convert('浏览器' using gb2312))";
mysql_query($query);
if (mysql_error()) { print "Database ERROR: " . mysql_error(); }
$query="SELECT * FROM ch";
$result=mysql_query($query);
while($row = mysql_fetch_array($result))
{
echo $row['ucs2'] . " || " . $row['gb2312'];
echo "
";
}
?>
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
I used 7z to zip this file under Windows, try to unzip it under linux [ang@walker temp]$ gunzip 2011.sdf.zip gunzip: 2011.sdf.zip: unkno...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
No comments:
Post a Comment