Blogger Information
Blog 40
fans 0
comment 0
visits 45653
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Thinkphp3.2
无須終有的博客
Original
1916 people have browsed it

1.U方法传两个参数
    前台:href="{:U('Amember/member_start','zt='.$vo[manager_status].'&manager_id='.$vo[manager_id])}"
    后台:$zt=I('get.zt');
             $manager_id=I('get.manager_id');
2.让页面返回上一页,并且刷新;
    后台:echo "<script>

     self.location=document.referrer;

             </script>" ;

3.where方法多个条件
 $Issue_list=$issue_model->where("district='$district' and state=0 and demand='$demand'")->select();

psb.png

psb (1).png

$issue_list=$issue_model->where("demand in ('求职','招聘') and state=0")->order('issue_id desc')->page($pageno,$pagesize)->select();


4.多出隐藏

.product-buyer-name {

max-width: 110px;

overflow: hidden;

text-overflow: ellipsis;

white-space: nowrap;

}
<h5 class="product-buyer-name">橘子橘子匿名用户匿名</h5>


5.ThinkPHP连贯操作,join

$member_model=D('Member');

$result=$member_model->alias('s')

->field("s.user,d.totalmoney,d.nomoney,d.deduct")

->join("left join sp_money d on s.uid=d.pid")

->select();

psb.png

 6.用iframe、弹出子页面刷新父页面iframe

<script language=JavaScript>

parent.location.reload();

</script>

http://www.jb51.net/article/54711.htm ;

7.修改默认值 mysql

alter table sp_money(数据表) alter column rate(字段) set default 0.1;
 

8.复制数到数据表,按照原格式输出函数
<span>{$vo.anwser|nl2br}</span>


9.添加项目目录

<?php  

//设置浏览器相应

header('Content-Type:text/html;charset=utf-8');

define('APP_NAME','Imooc');//项目名称
define('APP_DEBUG', true); 

define('APP_PATH', './Imooc/');

include_once './ThinkPHP/ThinkPHP.php';

psb.png

添加的时候报错
:(

页面错误!请稍后再试~
ThinkPHP3.1.3 { Fast & Simple OOP PHP framework } -- [ WE CAN DO IT JUST THINK ]

将imooc.php文件的权限改成777
并开启调试模式 看是哪里的原因
define('APP_DEBUG', true);
之后报错
应用目录[./Imooc/]不可写,目录无法自动生成! 请手动生成项目目录~

手动添加Imooc项目目录 并修改权限77

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post