我需要选择的记录,登录的茶叶(老师),我做了很多研究,但遇到了一个又一个路障,所以我真的希望你在这方面的帮助,非常感谢!
这是我的代码:
$query=mysqli_query($conn, "select * from `app` left join `par` on par.par_id=app.par_id
left join `tea` on tea.tea_id=app.tea_id
ORDER BY app_id DESC");发布于 2018-03-05 12:04:51
您的where子句需要说明您在哪个列上匹配
$query=mysqli_query($conn, "select *
from app
left join par on par.par_id=app.par_id
left join tea on tea.tea_id=app.tea_id
where tea.tea_id = '".$_SESSION['tea_id']."'
ORDER BY app_id DESC");发布于 2018-03-05 12:04:29
您的where条件语法错误
select * from app
left join par on par.par_id=app.par_id
left join tea on tea.tea_id=app.tea_id
where tea.tea_id = '".$_SESSION['tea_id']."' ORDER BY app_id DESChttps://stackoverflow.com/questions/49109942
复制相似问题