Incorrect integer value: '' for column error

前端 未结 2 1600
無奈伤痛
無奈伤痛 2021-01-26 13:32

I am getting \'Incorrect integer value: \'\' for column country_id\'. Sometimes my dropdown is hidden in the form. So I am not sure how to handle this situtation. Here is my cod

2条回答
  •  粉色の甜心
    2021-01-26 14:09

    I once experienced this problem and apparently i had a typo instead of putting a 0 i typed an O "Letter O" and that value was not expected in the database because the database field only accepted integers.

    Make sure in your the value being passed from your code is integer type.

提交回复
热议问题