上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: 在写代码时,我们可以用类来使代码更加方便简洁,下面是一个简单的查询分页练习 源代码: <html> <head> <style type="text/css"> .p1 { color:yellow; background-color:#00F; font-size:14px; } </style> 阅读全文
posted @ 2016-02-21 16:48 秦萧不再 阅读(285) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-02-21 08:55 秦萧不再 阅读(568) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-02-21 08:52 秦萧不再 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-02-21 08:51 秦萧不再 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Window.open()方法参数详解 1, 最基本的弹出窗口代码 window.open('page.html');2, 经过设置后的弹出窗口 window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, 阅读全文
posted @ 2016-02-21 08:47 秦萧不再 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: 方式一:用php中的内置函数来做 (适用于5.1之前的版本)//1.生成连接 $conn = mysql_connect("localhost","root",""); //2.选择操作的数据库 mysql_select_db("today",$conn); ... 阅读全文
posted @ 2016-01-27 00:02 秦萧不再 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 面向对象:一:定义类class Dog{ var $name; var $age; var $pinzhong; function Jiao() { echo "{$this->name}在叫"; }}二:实例化对象 $dog = n... 阅读全文
posted @ 2016-01-25 13:48 秦萧不再 阅读(195) 评论(0) 推荐(0) 编辑
摘要: "; echo "代号名称"; for($i=0;$i".$nation[$i][0]."".$nation[$i][1].""; } echo "";?>运行结果: 阅读全文
posted @ 2016-01-24 20:45 秦萧不再 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 数组: 一:定义 1.赋值定义 $arr[0] = 5; $arr[1] = "aa"; print_r ($arr); 2.定义索引数组 $arr = array(1,2,3,4,5); 3.定义关联数组,只能用key来取值 $arr = array("aa"=>5,"bb"=>6,7=>"cc... 阅读全文
posted @ 2016-01-24 19:59 秦萧不再 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 语句: 一:分支语句 1.if(条件1){满足条件1执行} 2.if(条件1){满足条件1执行}else{不满足条件1执行} 3.if(条件1){满足条件1执行}else if(条件2){满足条件2执行}else{不满足条件1和条件2执行} 4.if的嵌套 5.switch....case $a ... 阅读全文
posted @ 2016-01-24 19:54 秦萧不再 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页