随笔分类 -  php

摘要:实现效果: 实现代码: <html><head><meta charset="utf8"></head><body><table border="1" align="center" width="450" height="101" cellpadding="1" cellspacing="1" bg 阅读全文
posted @ 2016-08-31 01:33 xiaofeiyang 阅读(5053) 评论(0) 推荐(0)
摘要:php字符串操作 1.mail函数的使用:bool mail(string to,string subject,string message, string addtional_headers,string addtional_parameters);参数分别代表:目的地址,主题行,消息内容,额外的 阅读全文
posted @ 2016-08-29 23:55 xiaofeiyang 阅读(144) 评论(0) 推荐(0)
摘要:一数组的建立以及输出 <?php$products = array ('Tires','Oil','Spark Plugs');for($i = 0;$i < 3; $i ++) echo "$products[$i] ";echo '<br/>';foreach($products as $cur 阅读全文
posted @ 2016-08-28 23:28 xiaofeiyang 阅读(199) 评论(0) 推荐(0)
摘要:一.mysql的连接: <?php header("Content-Type:text/html;charset=utf8"); $servername="localhost"; $username="root"; $password="password"; $link=new mysqli($se 阅读全文
posted @ 2016-08-23 09:26 xiaofeiyang 阅读(834) 评论(0) 推荐(0)
摘要:php变量 1.变量的定义:a.变量必须以$符号开始,注意这里$符号并不属于变量的名称,即$+变量名称 b.变量名称必须以字母或者下划线开始。 c.变量中只能含有字母数字以及下划线; d.变量名区分大小写。 2.变量的创建:a.注意在php中,变量类型是不需要声明的,即不存在c或c++中的int a 阅读全文
posted @ 2016-08-20 00:20 xiaofeiyang 阅读(220) 评论(0) 推荐(0)
摘要:1.php用途: a.生成动态页面内容 b.创建,打开,读取,写入,关闭服务器上的内容 c.收集表单内容 d.发送和接受cookies. e添加,删除,修改自己数据库中的数据。 e.限制用户访问自己网站中的一些页面 f.对数据进行加密处理。 2.安装php环境:推荐下载warmServer,便于之后 阅读全文
posted @ 2016-08-19 23:51 xiaofeiyang 阅读(165) 评论(0) 推荐(0)