Notice: Use of undefined constant id - assumed 'xxxx' 解决办法比如:Notice: Use of undefined constant id - assumed 'id' 这是书写不规范导致的,如:$row[id], 正确写法为$row['id'];