在PHP的SQL查询语句前添一句:
mysql_query("SET NAMES 'GB2312'");
DEMO:
<?php
// put your code here
$server_name="localhost";
$server_user="root";
$server_password="1225312";
$server_database="query";
$s ...
<!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=gb2312" />
<title>MySQL</title ...
MYSQL函数 mysql_affected_rows: 得到 MySQL 最后操作影响的列数目。 mysql_close: 关闭 MySQL 伺服器连线。 mysql_connect: 开启 MySQL 伺服器连线。 mysql_create_db: 建立一个 MySQL 新资料库。 mysql_data_seek: 移动内部传回指标。 mysql_db_query: 送查询字串 (query) 到 MySQL 资料库。 mysql_drop_db: 移除资料库。 mysql_errno: 传回错误讯息代码。 mysql_error: 传回错误讯息。 mysql_fetch_array: 传 ...
第一个入门级的例子
<!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=gb2312" />
<title>inde ...
- 浏览: 18238 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
韩央央
共 72 张
共 72 张
最近加入圈子
最新评论
-
纯CSS打造的导航菜单
似曾相识...
-- by lizhiwei03 -
java中文件操作大全(转)
thanks
-- by 浴盆儿 -
层高度自适应的问题--
这个不叫高度自适应吧!
-- by hellohong -
Java开发者需坚守的十大基 ...
虽然文章说少即是好,但那几个例子够啰嗦的。
-- by yiding_he -
Java开发者需坚守的十大基 ...
泛泛而谈,没价值。如果用来开发手机应用,必死
-- by Azi






评论排行榜