摘要:
1、连接Mysql$con = mysql_connect("localhost","root","");if (!$con){ echo 'Could not connect: ' . mysql_error();}2、选择数据库mysql_select_db("test", $con);3、数据... 阅读全文
摘要:
css中:.blur { filter: url(blur.svg#blur); -webkit-filter: blur(3px); -moz-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); filter: p... 阅读全文
摘要:
ajax post的时候,var post_data = $('#J_input2').val();长这样的时候 "+123+'+&+"++&123用以下两种方式传给php都不会存在问题方式1:data:{'postdata':post_data},方式2:data: 'postd... 阅读全文
摘要:
php传值给js,然后js将数据显示在网页上,如果存在特殊字符如:' 半角单引号," 半角双引号,或者和html实体符号相关的 & 就会出现各种显示上的问题php部分先将这些特殊的字符转义 $value) { if (is_array($value)) { arrayRecursi... 阅读全文
摘要:
————————————2015-5-13————最新更新———————————————由于jwplayer6已经完全无法正常工作,以下介绍的方法也已经失效,请更换视频播放插件,可以参考楼主的文章:http://blog.csdn.net/snow_finland/article/details/4... 阅读全文
摘要:
CI框架 404 会默认跳转到 errors/error_404如果需要对404报错页面进行处理,有自定义的404页面或者需要利用地址的‘/’传参数的话,可以通过修改application/config/routers.php中$route['404_override'] = '{controlle... 阅读全文
摘要:
html元素 水平居中 于 其父级元素的方法:方法1:左右居中方法1html,body,div{ margin:0; padding:0; height:100%; position:relative;}.wrap{ width:400px; height:300px; margin:10px; b... 阅读全文
摘要:
json_encode对中文的处理一直是有问题的,1.不能处理GB编码,所有的GB编码都会替换成空字符.2.utf8编码的中文被编码成unicode编码,相当于javascript的escape函数处理的结果.为了能正确使用json,方法一:将数据转成JSON之后,将unicode编码的中文替换成u... 阅读全文