Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause''

后端 未结 2 449
深忆病人
深忆病人 2021-01-26 10:40


        
相关标签:
2条回答
  • 2021-01-26 11:18

    The error message indicates that the table admin in your database does not have a column called id. You need to check what columns are available in the table, but without more information (such as the table definition), I can't be more help.

    0 讨论(0)
  • 2021-01-26 11:26

    this will sort the problem you have , I had a similar issue but i manage to fix it.

    {$sql = "DELETE FROM admin where id =".$_GET['id'];} 
    
    0 讨论(0)
提交回复
热议问题