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'

21st Aug 2020, 4:24 PM
João Hoffman
João Hoffman - avatar
6 Antworten
0
what error do you get ? the error from mysqli_error($con)
21st Aug 2020, 4:35 PM
Rei
Rei - avatar
0
I edited
21st Aug 2020, 4:40 PM
João Hoffman
João Hoffman - avatar
0
just try echoing mysqli_error($con) or die(mysqli_error($con)) should be fine, you can change it later.
21st Aug 2020, 4:42 PM
Rei
Rei - avatar
0
dont't have error
21st Aug 2020, 4:49 PM
João Hoffman
João Hoffman - avatar
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.
21st Aug 2020, 4:53 PM
Rei
Rei - avatar
0
strange.... dont appears any error
21st Aug 2020, 4:54 PM
João Hoffman
João Hoffman - avatar