Problem:
I have created a table in SQL using phpmyadmin. It has four field user_id, username, password,usertype. Then I inserted data to that table. But when I run a SQL query to get a user like this SELECT * FROM users WHERE username = tharinduS
.But this works only when I use user_id = 1 instead of username = tharinduS. But username tharinduS exists in the table. I tried a lot to figure it out what's wrong with this. But I was unable to do so. Can you please someone help me to figure this out?. Thank you.