示例:

$userutf=iconv('GBK','utf-8',$user);
$db->query("set names utf8");
$str="select uid,password,username from leuyou.modoer_members where username='$userutf'";

posted on 2010-06-09 14:29  小炒花生米  阅读(2306)  评论(0编辑  收藏  举报