摘要: echo "hello","aaaa"; //输出语法,可以输出多个字符串 print "world"; //可以输出,只能输出一个字符串 //php是弱类型语言 //$a = 5; //php定义变量以$开头 //echo $a; $a = "hello"; $hello = "world"; echo $$a; //可变变量*/ //echo iss... 阅读全文
posted @ 2016-04-25 16:53 请叫我魔术先生 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、查询Student表中的所有记录的Sname、Ssex和Class列。 Select sname,ssex,class from student 2、查询教师所有的单位即不重复的Depart列。 Select distinct depart from teacher 3、查询Student表的所有记录。 Select *from student 4、查询Score表中成绩在60到80之间的所... 阅读全文
posted @ 2016-04-24 16:00 请叫我魔术先生 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1.连接查询 select * from Info,Nation #得出的结果称为笛卡尔积 select * from Info,Nation where Info.Nation = Nation.Code join on连接 select * from Info join Nation #join连接 select * from Info join Nation on Info.Na... 阅读全文
posted @ 2016-04-24 13:48 请叫我魔术先生 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Mtsql:常用代码 Create table CeShi1 ( Uid varchar(50) primary key, Pwd varchar(50), Name varchar(50) Nation varchar(50), foreign key (Nation) references Nation(Code) //加外键关系 ... 阅读全文
posted @ 2016-04-18 18:48 请叫我魔术先生 阅读(242) 评论(0) 推荐(0) 编辑
摘要: docunment.getElementById("id");根据id找,最多找一个; var a =docunment.getElementById("id");将找到的元素放在变量中; docunment.getElementByName("name");根据name找,找出来的是数组; doc 阅读全文
posted @ 2016-03-27 20:27 请叫我魔术先生 阅读(225) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript">代码必须放在这里面</script> 一般写在</html>后面。 三个对话框: alert("")警告框 confirm("")确定对话框 prompt输入内容对话框 基本数据类型: 字符串、小数、整数、日期时间、布尔型等。 变量: 都是 阅读全文
posted @ 2016-03-25 14:23 请叫我魔术先生 阅读(133) 评论(0) 推荐(0) 编辑
摘要: style 阅读全文
posted @ 2016-03-25 13:42 请叫我魔术先生 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Body的属性: bgcolor 页面背景色 text 文字颜色 Topmargin 上页边距 Leftmargin 左页边距 Rightmargin 右页边距 Bottomargin 下页边距 Background 背景壁纸 Font color 控制字体 Size 字体大小 Face 字体 Ce 阅读全文
posted @ 2016-03-24 12:45 请叫我魔术先生 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 链接的style: a:link 超链接被点前状态 a:visited 超链接点击后状态 a:hover 悬停在超链接时 a:active 点击超链接时 在定义这些状态时,有一个顺序l v h a 阅读全文
posted @ 2016-03-22 15:51 请叫我魔术先生 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 文本框: 密码框: 文本域: 男 女 鸡腿 鸡米花 可乐 文件上传: 可口可乐 百事可乐 雪碧 </form> 阅读全文
posted @ 2016-03-21 09:52 请叫我魔术先生 阅读(188) 评论(0) 推荐(0) 编辑