Query was empty PHP error

后端 未结 2 480
花落未央
花落未央 2021-01-24 06:05

I am trying to build a cart using MySQL. I keep getting this error \'Query was empty\' when I run this code. Please help I\'ve tried several things such as putting the variables

2条回答
  •  走了就别回头了
    2021-01-24 06:37

    It can also mean the table which is in consideration is empty.This condition arises when the "DELETE FROM table_name where ;" is used. Here if the table "table_name" has no data, it cannot delete anything and hence it shows an error stating that the query is empty.

提交回复
热议问题