update <?php //1.创建PDO对象,连接数据库 $pdo = new PDO('mysql:host=127.0.0.1;dbname=php...
288
<?php namespace app\index\controller; use think\Controller; use think\Db; use&nbs...
169
<?php function sum1($a,$b){ return "$a + $b ...
219
<?php //文件上传操作 function upload_file($fileInfo,$uploadPath="./upload",$...
229
<!DOCTYPE html> <html> <head> <title>Ajax原理实线</title> <met...
276
<?phpnamespace app\index\controller;use think\Controller;use app\Validate\Task; //导入验...
367
<?php namespace app\index\controller; use think\Db; class Query { public fu...
161
<?php namespace app\index\controller; use think\Db; class Query { public fu...
161
<?php namespace app\index\controller; use think\Db; class Query { &n...
275
PDO连接数据库的小案例<?php$type = 'mysql';$host = '127.0.0.1';$dbname = 'php';$cha...
111
<?php /** * 依赖注入 * Date: 2019/4/20 * Time: 20:51  ...
295
基础模版base代码如下:{//基础模版中只允许出现block标签} {block name="header"} {include file="pu...
241
<?php // 创建数据库的单利模式 2019-04-20 class Connsql { &nbs...
240
controller下添加管理员操作方法public function add(){renturn $this->fetch();}public function DoAdd(){//获取前端提...
221
insert INSERT INTO `user`(`name`,`sex`,`age`,`email`,`password`,`status`,`create_time`) VA...
193