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