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](https://cdn.answeroverflow.com/1220133792472367164/image.png)
![No description](https://cdn.answeroverflow.com/1220133792698863756/image.png)
![No description](https://cdn.answeroverflow.com/1220133792962842796/image.png)
1 Reply
Hello, @Smileyface! This is because your query returns array, so for
if
statement condition is true