<!DOCTYPE html><html><head> <meta charset="utf-8"><...
162
<!DOCTYPE html><html><head> <meta charset="utf-8"><...
171
<!DOCTYPE html><html><head> <meta charset="utf-8"><...
181
数据表:增加数据操作:<?php require 'demo21.php'; //2、写sql语句 $sql = "insert ...
304
show databases; use php_edu; set names utf8; show tabels; desc test; c...
267
数据库名 test CREATE TABLE `user` ( `uid` INT(11) NOT NUL...
393
$type = 'mysql'; //数据库类型 $host = '...
215
#增 INSERT `user` VALUES (null,'a1',0,34,'a1@php.cn',sha1(123456),1,15...
267
1、数据库2、新增数据操作<?php //1.创建PDO对象,连接数据库 $pdo = new PDO('mysql:host=127.0.0.1;dbna...
311
update user set password=PASSWORD('root') where user='root'...
272
//插入数据INSERT INTO `user` (`name`, `sex`, `age`, `email`, `password`, `status`, `create_time`) VALUES...
249
//连接数据库$db = @mysqli_connect('127.0.0.1','root','root','test','3...
293
medoo的安装和smarty一样,可以通过composer来安装require __DIR__. 'vendor/autoload.php'; ...
251
medoo连接mysql配置<?php //配置medoo require_once __DIR__.'\Medoo-1.6\src\Medoo.php'; use&n...
238
<?php//1.参数绑定:bindParam() bindValue()//1.创建PDO对象,连接数据库$pdo = new PDO('mysql:host=127.0....
277