Notice: Use of undefined constant id - assumed 'xxxx'  

解决办法

比如:Notice: Use of undefined constant id - assumed 'id' 


这是书写不规范导致的,

如:$row[id],   正确写法为$row['id'];