update <?php //1.創(chuàng)建PDO對(duì)象,連接數(shù)據(jù)庫 $pdo = new PDO('mysql:host=127.0.0.1;dbname=php...
292
<?php namespace app\index\controller; use think\Controller; use think\Db; use&nbs...
177
<?php function sum1($a,$b){ return "$a + $b ...
226
<?php //文件上傳操作 function upload_file($fileInfo,$uploadPath="./upload",$...
238
<!DOCTYPE html> <html> <head> <title>Ajax原理實(shí)線</title> <met...
286
<?phpnamespace app\index\controller;use think\Controller;use app\Validate\Task; //導(dǎo)入驗(yàn)...
372
<?php namespace app\index\controller; use think\Db; class Query { public fu...
166
<?php namespace app\index\controller; use think\Db; class Query { public fu...
165
<?php namespace app\index\controller; use think\Db; class Query { &n...
284
PDO連接數(shù)據(jù)庫的小案例<?php$type = 'mysql';$host = '127.0.0.1';$dbname = 'php';$cha...
116
<?php /** * 依賴注入 * Date: 2019/4/20 * Time: 20:51  ...
299
基礎(chǔ)模版base代碼如下:{//基礎(chǔ)模版中只允許出現(xiàn)block標(biāo)簽} {block name="header"} {include file="pu...
246
<?php // 創(chuàng)建數(shù)據(jù)庫的單利模式 2019-04-20 class Connsql { &nbs...
242
controller下添加管理員操作方法public function add(){renturn $this->fetch();}public function DoAdd(){//獲取前端提...
225
insert INSERT INTO `user`(`name`,`sex`,`age`,`email`,`password`,`status`,`create_time`) VA...
204