1
Colleagues.
I have the following code below:
$conexao = new mysqli('127.0.0.1','root','','teste');
if(mysqli_connect_errno()) die(trigger_error(mysqli_connect_errno()));
$cadastrar = $conexao->prepare("INSERT INTO cad_produtos VALUES(?,?,?,?)");
$cadastrar->bind_param('iiss',
null,
'111',
'11',
'2016-03-01');
$cadastrar->execute();
$idCod = $cadastrar->insert_id;
The data type being (following the order): Int, Int, Varchar, Date.
But you are not registering.
There was no mistake?
– Krismorte
Sorry Krismorte... we thought it was our mistake, but it’s not... we saw that there is no mistake... We checked if the nomenclature was right, number of fields, but nothing...
– user24136