随笔-103  评论-37  文章-0  trackbacks-0
 
     摘要:   阅读全文
posted @ 2013-08-28 13:45 鱼有所思 阅读(239) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2013-07-17 13:30 鱼有所思 阅读(1034) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2013-04-19 13:33 鱼有所思 阅读(373) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2013-04-19 13:23 鱼有所思 阅读(269) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2013-04-03 10:56 鱼有所思 阅读(2132) | 评论 (0)编辑 收藏

1、htmlspecialchars() 转义特别的字符为HTML实体;


    '&' (ampersand) becomes '&' 
    '"' (double quote) becomes '"' when ENT_NOQUOTES is not set. 
    ''' (single quote) becomes ''' only when ENT_QUOTES is set. 
    '<' (less than) becomes '&lt;' 
    '>' (greater than) becomes '&gt;' 

2、htmlspecialchars_decode()将实体转成HTML代码,函数1的反函数

3、 htmlentities()这个是全部转换html实体,和htmlspecialchars()区别在于,这个函数是转义全部的字符,而htmlspecialchars()仅仅转义上面限定的5个特殊字符!

posted @ 2013-03-28 14:13 鱼有所思 阅读(618) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2013-03-24 21:52 鱼有所思 阅读(801) | 评论 (0)编辑 收藏
     摘要: 以下的文章主要介绍的是MySQL 数据库中如何将一个实际应用表的相关数据插入到另外一个表的实际操作方法,此方案看起来很简单但是并非如此,虽然这个实现起来非常简单,但是还是会困扰许多新手,因此专门发一篇文章备查 。

  开发中,我们经常需要将一个表的数据插入到另外一个表,有时还需要指定导入字段,虽然这个实现起来非常简单,但是还是会困扰许多新手,因此专门发一篇文章备查 。

转载  阅读全文
posted @ 2012-05-04 10:30 鱼有所思| 编辑 收藏
var brands = new Array(); //创建数组
var dates = "1111&2222&3333&4444&5555&6666&7777"; //定义字符串
var dtNum = dates.split("&").length; //取得字符串长度
brands = dates.split("&"); //为数组负值
for (i = 0; i < dtNum; i++) {
    document.write(brands[i]); //打印数组
}
posted @ 2012-04-21 13:42 鱼有所思| 编辑 收藏
     摘要:   阅读全文
posted @ 2012-02-18 10:30 鱼有所思 阅读(872) | 评论 (0)编辑 收藏
仅列出标题
共11页: 1 2 3 4 5 6 7 8 9 Last