摘要:
$and=20; $aa = array(); $bb = array(); for($i=0;$i<$and;$i++){ $aa[$i] = 0; } for($i=0;$i<count($aa);$i++){ if($i == count($aa)-1){ $bb[$i] = $aa[$i]; 阅读全文
摘要:
PHP设置编码 (防止浏览器乱码, 一般用在php代码里面出现中文时 加在 代码前) header('content-type: text/html; charset=utf-8'); 阅读全文
摘要:
<script> function playTime(){ var today=new Date(); var hour=today.getHours(); var minute=today.getMinutes(); var second=today.getSeconds(); if(hour<1 阅读全文
摘要:
public function work_login_add() { /*添加用户*/ $names=$_POST["names"]; $user=$_POST["user"]; $pwd=$_POST["pwd"]; $pwd=base64_encode($pwd); $res=Db::name( 阅读全文
摘要:
public function student_send() {/*(学生) 提交试卷*/ if(request()->isGet()){ return $this->fetch("stu_finish"); }else{ /*试卷id*/$paper_id=$_POST["paper_id"]=2 阅读全文
摘要:
(1) $pageNow =$_POST["page"]=1; //当前显示第几页 $pageSize = 10; //每页显示的数量 $rowCount = 0; //要从数据库中获取 //如果有pageNow就使用,没有就默认第一页。 if (!empty($pageNow)){ $pageNo 阅读全文