1
When I try to insert into a table this error appears Field 'Hash' doesn't have a default value
mysqli_query($conn, "SET SQL_MODE = ''; INSERT INTO ".SQL_TABELA."(`Chave`, `Nome`, `Categoria`, `Tamanho`, `Link`, `Hash`, `Tipo`, `Parceiro`) VALUES ('".$chave."', '".$name."', '".$category."', '".$size."', '".$link."', '".$hash."', '".$type."', '".$parceiro."')") or die(mysqli_error($conn));
Note: I tried to remove the SET SQL_MODE = '';
Have you tried creating a default value for the
Hash
? For exampleALTER TABLE Tabela MODIFY COLUMN Hash VARCHAR(255) DEFAULT NULL;
.– Inkeliz
Solved, put this as an answer please.
– Lucas Caresia