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