易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql+php无法连接sql(已解决)

搞了很久。。终于发现原来是权限问题。。
2行命令搞定
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
经典了。。。
魔力私服网页端搞定咯~~


相关文档:

PHP 制作通讯录(二)

上一篇中,简单写了个Input.php , 但生日那一栏要自己手动输入写,比较麻烦,所以这里用到一个JS文件,可以选择日期
点击下载这个js文件
在Input.php文件最顶端引用这个JS文件
<script type="text/javascript" src="calenderJS.js"></script>
将生日的输入框改成
<input name="birthday" type="text" ......

php中session出现warning或note提示 解决方法

方法1:error_reporting (E_ALL ^ E_WARNING);
           session_start();
方法2:error_reporting (E_ALL & ~E_NOTICE);
if (!isset($_SESSION)) {
    session_start();
};
方法3:改php.ini 中error_reporting ......

BMH子串查找算法(PHP实现)

代码interface StringSearchable
{
    public function search($substring, $buffer);
}
class BoyerMooreStringSearch implements StringSearchable
{
    public $substring = null;
    public ......

SQL DateTime查询与格式

select * from orders where month(orderdate)= (select month(orderdate) from orders where orderid=10248)
1.一个月第一天的
Select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0)
2.本周的星期一
Select DATEADD(wk, DATEDIFF(wk,0,getdate()), 0)
3.一年的第一天
Select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号