0
How to get the last ID when inserting into BD Mysql, using PHP and Mysqli.
$inserir = $conexao->query("INSERT INTO cadastro (nome, sobrenome) VALUE (
'Fulano',
'De tall'
");
echo $id = mysqli_insert_id($conexao);
Is returning 0.
Looks to me like we’re missing one
)
in hisinsert
on declensionvalue
. See if theinsert
is working.– gato
@True cat. I put the
)
and it worked. Thank you.– Tiago
Worse than this fault does not accuse error.
– user60252