11 2009 档案

摘要:打印功能<input type=submit name=print value="PRINT" onClick="javascript:window.print()"> 阅读全文
posted @ 2009-11-30 11:45 derrck 阅读(224) 评论(1) 推荐(0)
摘要:在windows下编程,当使用session_start()方法的时候,有时会报session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/inpublisher/php1.php:1)这样的错误,说是已经... 阅读全文
posted @ 2009-11-27 09:43 derrck 阅读(1869) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-11-26 15:20 derrck 阅读(267) 评论(0) 推荐(0)
摘要:update table set user=concat(user,$user) where xx=xxx; 阅读全文
posted @ 2009-11-25 14:30 derrck 阅读(447) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-11-16 15:02 derrck 阅读(2209) 评论(0) 推荐(0)
摘要:程序一:PHP截取中文字符串方法 由于网站首页以及vTigerCRM里经常在截取中文字符串时出现乱码(使用substr),今天找到一个比较好的截取中文字符串方法,在此与大家共享。 function msubstr($str, $start, $len) { $tmpstr = ""; $strlen = $start + $len; for($i = 0; $i < $strlen; $i+... 阅读全文
posted @ 2009-11-16 13:12 derrck 阅读(297) 评论(0) 推荐(0)
摘要:[代码][代码][代码] 阅读全文
posted @ 2009-11-12 15:02 derrck 阅读(616) 评论(1) 推荐(0)
摘要:PHP-ExcelReader,下载地址: http://sourceforge.net/projects/phpexcelreader 说明: 测试环境:MYSQL数据库采用utf8编码.导入EXCEL文档是xls格式,经过测试,xlsx 格式[excel 2007]也OK. 文中红色标注为需要注意的地方,请替换成你配置好的数据,如数据库配置等。运行http://localost/test.p... 阅读全文
posted @ 2009-11-09 15:53 derrck 阅读(1107) 评论(0) 推荐(0)
摘要:关于php读取中文乱码问题可以对读取的编码进行编码转换$data = iconv("UTF-8","GB2312//IGNORE",$data) 阅读全文
posted @ 2009-11-06 13:50 derrck 阅读(238) 评论(0) 推荐(0)