比如一个搜索表单根据用户输入的id值搜索name字段下的对应的名字 这个应该怎么查询呢?我只会写这么一点 tp里面传值不知道该怎么弄 怎么传值怎么接收?
$qq->field('name');
$info=$qq->select();
$this->assign('info',$info);
$this->display();
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
html
php
差不多就是这样,tp的文档还是很容易懂的。
具体的应该参考手册:
http://document.thinkphp.cn/manual_3_2.html
表单提交,直接GET,POST接收,或者I方法
看文档
http://document.thinkphp.cn/manual_3_2.html#input_var