t1表里有四个字段 id col1 col2 col3要将col1 col2两个字段都相同的重复数据删除掉(到只剩一组)create table tmp as select max(id) as cola from t1 group by col1,col2;delete fromt1 where id not in (select cola from tmp); drop table tmp;[SQL] create table tmp as select max(id) as cola fromt1 group by col1,col2;受影响的行: 10723时间: 0.030s[SQL Read More
posted @ 2013-06-19 11:50 枫叶秋声 Views(752) Comments(0) Diggs(0)
网站的中文参数是直接传的 例如 /index.php?t=你好所有页面均为utf-8编码火狐,firefox下正常 IE下乱码目前用这种方法暂时解决.$bm = array('UTF-8','GBK'); $charTest; foreach($bm as $c){ if( $tag === iconv('UTF-8', $c, iconv($c, 'UTF-8', $tag))){//转换编码后是不是相等 $charTest = $c; break; } } if($charTest == 'GBK'){ $t. Read More
posted @ 2013-05-20 10:34 枫叶秋声 Views(2154) Comments(0) Diggs(0)
网上也说了一些,就是IE7的渲染DOM的问题,当一个父容器被定位(如position:relative)的时候,子元素的z-index属性会被重置。这里我再说的更明白一点分享给初学者:如果想让一个元素显示的更靠上层,那就多设几层父元素position:relative比如两个元素分别属于不同的DIV下边的不同层次 想让A显示在B上边 那就给A的父div设置position:relative,再给A的祖父div设置position:relative然后B的只有父DIV设置position:relative 这样A就在B上了... Read More
posted @ 2013-02-04 15:31 枫叶秋声 Views(118) Comments(0) Diggs(0)