上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页
摘要: input date类型赋初值为空是因为赋值的格式错误。 日期是用英文“-”符分格; 月和日的数值小于10时,前面要加0。 因此,正确的格式是 2020-04-03 而不是2020/04/03 或 2020-4-3 ,后面两种都不会有输出。 阅读全文
posted @ 2020-04-03 21:04 孤舟残月浅笑嫣然 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 验证码的作用是防止机器提交,防止机器暴力破解密码或向数据库提交垃圾数据。本验证码是根据php教材里的代码修改而成。随机码是在前端js生成的,后端php只是加上干扰条和干扰点显示了一下。 文件:index.html <!DOCTYPE html> <html> <head> <title>验证码实例< 阅读全文
posted @ 2020-03-05 19:35 孤舟残月浅笑嫣然 阅读(311) 评论(0) 推荐(0) 编辑
摘要: <?php /** * CodeIgniter 的测试 Model * * CodeIgniter 输出 sql 语句代码是: * $this->db->last_query() */ class TestModel extends CI_Model { private $table = 'DBTa 阅读全文
posted @ 2020-01-29 19:28 孤舟残月浅笑嫣然 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: 微信支付Native扫码支付模式二之CodeIgniter集成篇 http://www.cnblogs.com/24la/p/wxpay-native-qrcode-codeigniter.html CI:3.0.5 微信支付API类库来自:https://github.com/zhangv/wec 阅读全文
posted @ 2020-01-27 11:50 孤舟残月浅笑嫣然 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 使用场景: 注意 get_instance 的使用场景,这个方法并不是用在控制器中的。而是用在控制器外面,比如类库中,想操作 CI 超级对象的时候,超级对象实际上就是当前控制器的实例。 你随便下个CI框架的源码都会看到很多的get_instance() 函数,这个函数是用来获取CI 的全局超级对象, 阅读全文
posted @ 2020-01-27 11:48 孤舟残月浅笑嫣然 阅读(525) 评论(0) 推荐(0) 编辑
摘要: `id` int unsigned not null auto_increment primary key, 1.SQL PRIMARY KEY 约束PRIMARY KEY 约束唯一标识数据库表中的每条记录。主键必须包含唯一的值。主键列不能包含 NULL 值。每个表都应该有一个主键,并且每个表只能有 阅读全文
posted @ 2020-01-26 14:41 孤舟残月浅笑嫣然 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: 地址:https://developer.aliyun.com/composer 下载地址: https://mirrors.aliyun.com/composer/composer.phar 全局配置(推荐) 所有项目都会使用该镜像地址: composer config -g repo.packa 阅读全文
posted @ 2020-01-18 13:33 孤舟残月浅笑嫣然 阅读(389) 评论(0) 推荐(0) 编辑
摘要: ngnix服务器,进入:nginx/conf/vhosts.conf: server { listen 80; server_name www.x.com x.com; root "C:\Runing\PHPTutorial"; location / { index index.html index 阅读全文
posted @ 2020-01-15 20:05 孤舟残月浅笑嫣然 阅读(577) 评论(0) 推荐(0) 编辑
摘要: ubuntu下载地址:https://www.ubuntu.org.cn/download 安装步骤如下: 要用 putty 连接,root 用户登录的话,下面的配置需要修改: 以上用 VMware 的 net 模式连接的网络,这种连接方式适合于 ip 地址比较稀缺的情况。如果需要其他连接方式,请参 阅读全文
posted @ 2020-01-08 09:21 孤舟残月浅笑嫣然 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 复制代码下来,在三个输入框里输入不同的值,试试效果: 阅读全文
posted @ 2020-01-02 18:01 孤舟残月浅笑嫣然 阅读(598) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页