摘要:
<?php //正则表达式 //斜杠代表定界符 /^$/ /* $str="abcde123fg456h"; $reg="/\d/"; echo preg_replace($reg,"#",$str);//将字符串str按照正则表达式reg替换为# var_dump(preg_split($reg, 阅读全文
摘要:
<?php /* echo "hello","aaaa"; //输出语法,可以输出多个字符串 print "world"; //可以输出,只能输出一个字符串 */ //php是弱类型语言 //$a = 5; //php定义变量以$开头 //echo $a; /* $a = "hello"; $hel 阅读全文
摘要:
一、数学函数 数学函数主要用于处理数字,包括整型、浮点数等。 ABS(x) 返回x的绝对值 SELECT ABS(-1) -- 返回1 CEIL(x),CEILING(x) 返回大于或等于x的最小整数 SELECT CEIL(1.5) -- 返回2 FLOOR(x) 返回小于或等于x的最大整数 SE 阅读全文
摘要:
1、 查询Student表中的所有记录的Sname、Ssex和Class列。 Select sname,ssex,class from student ; 2、 查询教师所有的单位即不重复的Depart列。 Select distinct depart from teacher 3、 查询Stude 阅读全文
摘要:
高级查询: 1.连接查询 select * from Info,Nation #得出的结果称为笛卡尔积select * from Info,Nation where Info.Nation = Nation.Code join on连接 select * from Info join Nation 阅读全文
摘要:
C/S:Client ServerB/S:Brower Server php主要实现B/S .net IIS java TomCat LAMP: Linux系统 A阿帕奇服务器 Mysql数据库 Php语言 mysql:常用代码 create table CeShi1( Uid varchar(50 阅读全文
摘要:
1、表单验证<form></form> (1).非空验证(去空格) (2).对比验证(跟一个值对比) (3).范围验证(根据一个范围进行判断) (4).固定格式验证:电话号码,身份证号,邮箱,信用卡号等的验证;需要用到正则表达式来进行验证。 (5).其它验证 2、正则表达式 用符号来描述书写规则:/ 阅读全文
摘要:
一、分层导航 二、隐藏导航 阅读全文
摘要:
1、Window.document对象 一、找到元素: docunment.getElementById("id");根据id找,最多找一个; var a =docunment.getElementById("id");将找到的元素放在变量中; docunment.getElementByName( 阅读全文
摘要:
HTML格式布局 一、position:fixed 锁定位置(相对于浏览器的位置),例如有些网站的右下角的弹出窗口。 #top { border:1px solid #999; height:100px; width:966px; top:10px; left:200px; right:200px; 阅读全文