Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
安装thinkphp
composer create-project topthink/think tp
检查更新 thinkphp
composer update
use think\facade\Db;
$ret = Db::table('oyk_user')->where('uid',2)->find();
print_r($ret);
$data = [
'password' => md5('phpcn'),
'last_time' => time()
];
$ret = Db::table('oyk_user')->where('uid',8)->update($data);
print_r($ret);
$ret = Db::table('oyk_user')->where('uid',8)->delete();
print_r($ret);
$data = [
'nickname' => '小编1',
'phone' => '15888888888',
'password' => md5(123456),
'add_time' => time(),
'last_time' => time()
];
$ret = Db::table('oyk_user')->insert($data);
print_r($ret);