sq1228
中级会员
 
一般会员
UID 66008
精华
0
积分 267
帖子 239
金钱 267 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-8-19 来自 浙江宁波
状态 离线
|
[广告]: q
m
问一个ADODB下的字符问题
如果我在adodb下,如何能设字符集?比如我在mysql_query("set names gdk") ,然后在程序中插入中文是可以的,
而在adodb下如何表示这样一个过程呢,$db->Execute("set names gdk")是没有用的,请问高手帮忙啊?
这样可以
mysql_query("set names gdk");
mysql_query("update icity_user set xb = '男' where dzyx = 'sq@163.com'");
为何这样不行?
$db->Execute("set names gdk");
$res = $db->Execute("update icity_user set xb = '男' where dzyx = 'sq@163.com'");
[ 本帖最后由 sq1228 于 2006-9-15 11:18 AM 编辑 ]
|
|