关于or,and的使用,查资料得知:and相当于then,or相当于else
下面通过举例来理解这两个关键字的使用:
比如:【1】
$isRight or $a=1000;
他与下面这段代码是等价的:
if(isRight==true)
{
}
else
{
$a=1000;
}
【2】
$update and $db_factory=1;
等价于:
if($update=...
分类:
Web程序 时间:
2014-05-10 09:41:00
阅读次数:
452
这在附另一个转柱形图的效果及代码.
原PHP报表效果:
转成Excel后的效果:
附上代码:
<?php
/**
* PHPExcel
*
* Copyright (C) 2006 - 2014 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify ...
分类:
Web程序 时间:
2014-05-10 02:19:56
阅读次数:
553
1.Subclipsehttp://subclipse.tigris.org/update_1.8.xEnabled2.propedithttp://propedit.sourceforge.jp/eclipse/updates/Enabled3.
Mavenhttp://download.ecli...
分类:
系统相关 时间:
2014-05-07 18:47:03
阅读次数:
345
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_stack.h 完整列表
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its do...
分类:
其他好文 时间:
2014-05-07 07:40:07
阅读次数:
322
一、问题引出
① 假设当当网上用户下单买了本书,这时数据库中有条订单号为001的订单,其中有个status字段是’有效’,表示该订单是有效的;
② 后台管理人员查询到这条001的订单,并且看到状态是有效的;
③ 用户发现下单的时候下错了,于是撤销订单,假设运行这样一条SQL: update order_table set status = ‘取消’ whe...
分类:
数据库 时间:
2014-05-07 03:53:58
阅读次数:
450
AssertionError继承Error,提供了多个构造方法,代码如下:
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this w...
分类:
其他好文 时间:
2014-05-07 03:20:22
阅读次数:
579
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_queue.h 完整列表
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its document...
分类:
其他好文 时间:
2014-05-06 22:22:55
阅读次数:
402
此方法不必删除目录重新下载:针对于第一次成功checkout,一段时间后,update 报此
403错误,我找到了解决方法:即 使用switch 重新定位svn路径,解决这个问题。(附图)ps:能svn checkout
那么你的路径就是正确的,如果大小写错误,svn是不支持checkout。如果是...
分类:
其他好文 时间:
2014-05-06 18:19:39
阅读次数:
354
ubuntu12.04服务器可以使用apt-get方式安装NodeJS,但是,安装完后的版本为v0.6.12的版本,如果我们想要使用新一点的版本需要做如下配置:apt-getinstallpython-software-properties
apt-add-repositoryppa:chris-lea/node.js
apt-getupdate
apt-getinstallnodejs安装完成后可以..
分类:
Web程序 时间:
2014-05-06 16:45:52
阅读次数:
378
如何制作Win8系统镜像备份?Win8.1系统镜像备份如何还原?虽然Win8/Win8.1引入全新系统初始化功能,但该功能一般仅限于品牌电脑。普通用户该如何制作Win8系统镜像备份?最新版Win8.1
Update是否也可以制作系统镜像备份?下面,IT之家带大家使用wbAdmin命令手动制作系统镜像...