How do I check if username or email exists and then put a error message in my error array. Right now i have:
$sql = \"SELECT username, email FROM users WHERE use
You can fetch one row and see if you got same email that you search or same username or both. You can do LIMIT 0,1 if you can stop after finding first row matching either this or that.