![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP学习
程序媛花花
前端工程师 | 公众号:前端女塾 | 骑行爱好者
github:https://github.com/sunniejs
展开
-
PHP单引号和双引号
$sql="select id,name,pid,path,concat(path,'-',id) as bpath from imooc_sort ".$page->limit."order by bpath"; var_dump($sql);exit;输出int(0);没有输出string类型的语句原因是:引号的使用错误,concat(path,"-",id)改成concat(path,'-'原创 2015-01-26 21:19:04 · 288 阅读 · 0 评论 -
thinkphp实现无限极分类
数据库表 CREATE TABLE `imooc_sort` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `pid` int(11) unsigned NOT NULL, `path` varchar(400) NOT NULL, PRIMARY KEY (`id`原创 2015-01-27 20:46:52 · 700 阅读 · 0 评论 -
thinkphp3.2 上传图片找不到根目录问题
文件上传的根目录是在项目入口文件同级目录下,一开始一直在Apps下建立目录Uploads,导致出现找不到根目录,请手动建立。 相关代码: 添加商品:原创 2015-02-06 20:30:08 · 2577 阅读 · 0 评论