User exists when no users are in database

Hey guys, so when I enter a username onto my forms, it gives me an error saying username already exists when it doesnt yet on my database. Any ideas on why this is happening?
No description
No description
No description
1 Reply
Mykhailo
Mykhailo9mo ago
Hello, @Smileyface! This is because your query returns array, so for if statement condition is true
Want results from more Discord servers?
Add your server