2011年12月2日

PHP变量

摘要: <!DOCTYPE html><html><title>变量</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><body> <a href="../index.php">返回首页</a> <hr></hr><p>变量</p>1、PHP 中的变量用一个美元符号后面跟变量名来表示。变量名是区分大小 阅读全文

posted @ 2011-12-02 19:54 贾吾 阅读(1068) 评论(0) 推荐(1)

PHP小知识点

摘要: 一、PHP 支持8种基本的数据类型 1.四种标量类型: boolean (布尔型) integer (整型) float (符点型, 也称作 double) string (字符串) 2.两种复合类型: array (数组) object (对象) 3.最后是两种特殊类型: resource (资源) NULL (NULL)二、................. 阅读全文

posted @ 2011-12-02 19:44 贾吾 阅读(147) 评论(0) 推荐(0)

2011年11月29日

PHP基本类型

摘要: <!DOCTYPE html><html><title>基本类型</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><body> <a href="../index.php">返回首页</a> <hr></hr><?php #定义boolean变量$a_bool = false; // a boolean#转换示 阅读全文

posted @ 2011-11-29 23:41 贾吾 阅读(6634) 评论(1) 推荐(0)

2011年11月28日

PHP注释及与HTML混写

摘要: 一、注释View Code <!DOCTYPE html><html><title>注释</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><body> <a href="../index.php">返回首页</a> <hr></hr><?php echo "/**/号注释<br/>&quo 阅读全文

posted @ 2011-11-28 22:14 贾吾 阅读(3292) 评论(0) 推荐(0)

PHP的环境搭建

摘要: WIN7环境下下载WampServer5集成开发环境PHP5.2.5+mysql5+Apache2+PhpAdmin2.2傻瓜安装后运行,在右下角任务栏有如折扇图标,右键在“语言栏”中选择“chinese”,这样就切换到中文了。再左键该图标,可以看到如下菜单以下是上图各项意思:Localhost 可直接打开默认目录phpMyAdmin 为数据库操作页面SQLLiteManager为数据库管理WWW 目录,打开操作目录 日志文件 apache php mysql日志配置文件:apache php mysql配置文件Apache模块 apache的一些配置参数,带三角号的是已配置项PHP设置 ph 阅读全文

posted @ 2011-11-28 22:05 贾吾 阅读(367) 评论(0) 推荐(0)

好的网址

摘要: VOA:http://www.listeningexpress.com/download/#VOASEMP3Derby:http://db.apache.org/derby/releases/release-10.8.2.2.cgiEclipse Plugin openfolder:http://lizhou.iteye.com/blog/1152614easyui的svn: http://jquery-easyui.googlecode.com/svn/trunkhttp://code.google.com/p/jquery-easyui/source/browse/#svn/trunk/s 阅读全文

posted @ 2011-11-28 20:53 贾吾 阅读(228) 评论(0) 推荐(0)

js 工具函数

摘要: 一、document.getElementByIdfunction $(id){ return document.getElementById(id);} $("id").value二、生成select的optionvar _option = $("id");_option.options[0]=new Option("Name","value"); 生成:<option value="value">Name</option>//var id = "{\&quo 阅读全文

posted @ 2011-11-28 19:22 贾吾 阅读(186) 评论(0) 推荐(0)

JS 日期时间

摘要: js 获取当前yyyy-MM-dd 格式日期 var now = new Date(); var nowDate = now.getFullYear()+"-"+(now.getMonth()+1)+"-"+now.getDate();以下摘自http://www.w3school.com.cn/js/jsref_obj_date.aspDate() 返回当日的日期和时间。 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6)。 getMonth() 从 D 阅读全文

posted @ 2011-11-28 18:55 贾吾 阅读(267) 评论(0) 推荐(0)

导航