04 2014 档案
摘要:使用字符串方式是:$m=M('User'); $arr=$m->where("sex=0 and username='gege'")->find();使用数组方式:$m=M('User');$data['sex']=0;$data['username']='gege';$arr=$m->where(...
阅读全文
摘要:User模块UserAction.class.phpselect();//查询数据库 $this->assign('data',$arr);// $this->display(); } /* * 向数据库插入数据 **/ public function add(){ $m=M('User...
阅读全文
摘要:注册相关函数$value){ if (!isset($key) || ($value=='')){ return false; } return true; }}//验证邮箱是否有效function verifyemail($email){ if (@ereg('^[a-zA-Z0-9_\...
阅读全文
摘要:仿着北京大学的网站自己做了个,并对原网站有些感觉不合适的地方做了下修改,由于时间有限,只做了三个页面,页面截图如下:下载地址:http://pan.baidu.com/share/link?shareid=3475586968&uk=1094580398
阅读全文
摘要:今天在工作之余写的一段PHP分页处理脚本,欢迎拍砖!!!显示页面 index.php分页处理函数showbbsProcess.php'.$arr[$i]['title'].''.' '.'作者:'.$arr[$i]['poster'].' '.'发布时间:'.$arr[$i]['posted'].'...
阅读全文

浙公网安备 33010602011771号