$author="admin";
$authorid=1;
$subject="我爱0215你中国";
echo $subject."aaaaaaaa";
$postdate=1305449459;
$lastpost=1305449459;
$lastposter="admin";
$ifcheck=1;
$str="$fid,'$author',$authorid,'$subject',$postdate,$lastpost,'$lastposter',$ifcheck";
$fd="fid,author,authorid,subject,postdate,lastpost,lastposter,ifcheck";
mysql_query("insert into  pw_threads($fd)values($str)");
////////////////////////////////////////////////////////////////////////////
$tid=mysql_insert_id();
$userip="192.168.1.200";
$ipfrom="地狱";
$content="北京时间5月16消息,据国外媒体报道,谷歌在今年的I/O大会上,仍在暗示将努力超越苹果。事实上,谷歌也在努力通过其产品的“选择性”来赢取更多用户的支持,而苹果在移动领域给用户提供的“选择性”却微乎其微,只不过提供了“黑色”和“白色”的iPhone等产品供用户选择而已。";
$fd="tid,userip,ipfrom,content";
$str="$tid,'$userip','$ipfrom','$content'";
mysql_query("insert into pw_tmsgs ($fd) values($str)");以上代码能正常插入到phpwind8.5的数据库中,但在显示出来的时候 却是乱码,还有在数据库中出显示的也是乱码!
搞了好久都没有搞好,