I am trying to get values from different columns, but from the same line. For example: get username, password, email address and by only knowing the username. So for example: user logins and wants to see some data related to them that is stored in the database, so I would get all the data from the line and then only display the data that I need, like his email address.
Example:
id | Username | Password | Email |
----+----------+----------+------------+
1 | Ane | 1234567 | ok@ok.com |
2 | Angi | 1234567 | ok@ok.com |
3 | Bobby | 1234567 | ok@ok.com |
4 | Denis | 1234567 | ok@ok.com |
5 | Jerry | 1234567 | ok@ok.com |
6 | Mikha | 1234567 | ok@ok.com |
So I want to get for example all the values from Username Mikha, so:
ID, Username, Password, Email
6, Ane, 1234567, ok@ok.com