摘要: ajax的创建 ajax.js//创建ajax对象function c_xmlhttp(){ var xmlhttp=null; if(window.XMLHttpRequest){ xmlhttp= new XMLHttpRequest; //如果请求的不是xml 则将它转为xml if(xmlhttp.overrideMime Type){ xmlhttp.overrideMime Type("text/html") } } else if(wind... 阅读全文
posted @ 2012-11-11 20:23 转角遇到bug 阅读(256) 评论(0) 推荐(0)
摘要: <?php header("Content-type:application/vnd.ms-excel"); header("Content-Dispotion:filename='test.xls' "); echo "a\t b\t c\n"; echo "aa\t bb\t cc\n"; echo "aaa\t bbb\t cccc\n";<table width="500" border=1> <tr><td col 阅读全文
posted @ 2012-11-11 18:46 转角遇到bug 阅读(454) 评论(0) 推荐(0)
摘要: 1 //假设数据库名字为 a 表名为b 2 3 //包含adodb类 4 5 include_once("adodb.inc.php"); 6 7 //链接数据库的类型----------------------链接方式1 8 9 $db=NEWADOConnection("mysql");10 11 $db->Connect("localhost","root","my123","a")or die("链接数据库错误");12 //-------- 阅读全文
posted @ 2012-11-11 18:04 转角遇到bug 阅读(1674) 评论(0) 推荐(0)