摘要: insert into test2(name,gender,age) select name,gender,age from test2; 蠕虫程序复制 (1) 要有初始值 (2) Insert into 表名 (字段1,字段2…) select 字段1,字段2… from 表名 (3) 成2^n复 阅读全文
posted @ 2021-07-22 14:59 王越666 阅读(65) 评论(0) 推荐(0) 编辑
摘要: <?php$link=new PDO('mysql:host=127.0.0.1;charset=utf8;dbname=day4','root','root');$sql="select * from user_name";$PDOStatement=$link->query($sql);$dat 阅读全文
posted @ 2021-07-22 13:40 王越666 阅读(43) 评论(0) 推荐(0) 编辑
摘要: if ($result){ echo '添加成功';// header('refresh:3,url=user_nameList.php'); echo "<script> alert('添加成功');location.href='user_nameList.php'</script>";}else 阅读全文
posted @ 2021-07-21 13:35 王越666 阅读(389) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="css/Bootstrap4.css" /> </head> <bod 阅读全文
posted @ 2021-07-19 19:52 王越666 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1.1关于数组操作的函数 1.1.1range(start,end) 创建一个数组,值从start开始,一直到end结束 如果range里面的参数是数字,那么他直接按照数字大小的顺序排序,如果里面的参数是一个字符,那么他将按照ascii编码的顺序排序。 1.1.2array_rand() 随机取出一 阅读全文
posted @ 2021-07-18 20:34 王越666 阅读(191) 评论(0) 推荐(0) 编辑
摘要: ///////////////////////////////////////////////////路由 //展示表单页面Route::get('/movies/add','moviesController@add');//表单提交页面Route::post('/movies/insert','m 阅读全文
posted @ 2021-07-17 09:18 王越666 阅读(98) 评论(0) 推荐(0) 编辑
摘要: $str=123456789098; echo substr_replace($str,'****',4,4) $str = '15235513256';echo str_replace(3551, '****', $str); 阅读全文
posted @ 2021-07-16 20:41 王越666 阅读(149) 评论(0) 推荐(0) 编辑
摘要: <p><input type="button" value="返回上一级页面" class="btn btn-danger" onclick="back()"><input type="button" value="返回下一级页面" class="btn btn-danger" onclick="g 阅读全文
posted @ 2021-07-16 14:49 王越666 阅读(421) 评论(0) 推荐(0) 编辑
摘要: ///////////////////////////////////////资源路由 ///////////////////////////////////////资源控制器 <?phpnamespace App\Http\Controllers;use App\models\testloginM 阅读全文
posted @ 2021-07-09 16:46 王越666 阅读(277) 评论(0) 推荐(0) 编辑
摘要: ////////////////////控制器 <?phpnamespace App\Http\Controllers;use App\models\registerModel;// 1 先引入Illuminate\Support\Facades\Validator;use Illuminate\S 阅读全文
posted @ 2021-07-08 21:41 王越666 阅读(43) 评论(0) 推荐(0) 编辑