I use to insert values in php like this:
$sql = " INSERT INTO `table` (name, email) VALUES ('$name','$email') ";
considering that my table has the following columns: id, name, email, address, phone
in mysql 5.7 it won't let my do that query above anymore, cause it's says address don't have a default value.
I add a default value for it on mysql, but some fields dont allow default value, like blob, text...
my question is: Do I always have to describe every column of my table in my query so it can work? Like:
$sql = " INSERT INTO `table` (id,name, email, address, phone)
VALUES ('', '$name','$email', '', '') ";