随笔分类 -  php

摘要:举例 $sql = "update user name='{$bb}' set where user_id=4"; 要对$bb里的单引号前加反斜杠,不然执行会报错,甚至会被注入. 阅读全文
posted @ 2015-10-21 16:05 wahgon
摘要:[Xdebug]zend_extension_ts="D:\wamp\bin\php\php5.2.9-2\ext\php_xdebug.dll";是否开启自动跟踪xdebug.auto_trace = On;是否开启异常跟踪xdebug.show_exception_trace = On;是否开启... 阅读全文
posted @ 2014-07-30 07:47 wahgon 阅读(298) 评论(0) 推荐(0)
摘要:插入排序,由第二位开始,一个个往前适当的位置(比左边大,比右边小)插入 1 0 && $ary[$j - 1] > $ary[$j]) {10 11 $tmp = $ary[$j];12 $ary[$j] = $ary[$j - 1];13 $ary... 阅读全文
posted @ 2014-07-22 21:25 wahgon 阅读(210) 评论(0) 推荐(0)