Isset expression error

心已入冬 提交于 2019-11-29 09:23:56

You missed this ):

if(isset($_POST['delete_id']) && !empty($_POST['delete_id']))
                            ^---

Others have shown the issue of the missing ) in the expression, but empty() will check isset() so that is redundant. Just check empty():

if(!empty($_POST['delete_id'])) {

The issue is that this

if(isset($_POST['delete_id'] && !empty($_POST['delete_id'])))

should be

if(isset($_POST['delete_id']) && !empty($_POST['delete_id']))
Thug Life

The issue is that this

if(isset($_POST['delete_id'] && !empty($_POST['delete_id'])))

should be

if((isset($_POST['delete_id'])) && (!empty($_POST['delete_id'])))
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!