0
erro with sql INSERT
hello everyone, I'm trying to register, but this part of the code is giving error. The connection is correct, since the login works. But I can't find the error that prevents the code from registering the user. thanks for listening https://code.sololearn.com/wMmiTveysUw8/?ref=app erro: [or die("erro ao cadastrar")] this is the error that is appearing, instead of registering it takes the 'die'
6 Respuestas
0
what error do you get ?
the error from mysqli_error($con)
0
I edited
0
just try echoing mysqli_error($con)
or die(mysqli_error($con))
should be fine, you can change it later.
0
dont't have error
0
every error that occur when executing a query, are stored by mysqli. and we can only retrieve it using mysqli_error()
without that its impossible to tell what went wrong when the query being executed.
0
strange.... dont appears any error