I have a MySQL Database called “business elements”, which has 4 columns in it (ID,Username,Password & Level). I want to check if a specific username’s (given by Usernametextbox.text) “Level” is Admin, Manager or User. These are the 3 values that I want all of my users to have(They are all in the column Level). My connectionstring is "server=localhost;user id=root;password=;database=business elements" and my table is users
Basically I want to check the value of a column with a given user.
All of this is in Visual Basic.
Someone please Help..
Here’s how to get the level for a particular username. It should a good starting point for lots of other functions. I haven’t tested it, but it should be pretty close. (Userlevel should match the data type for “level”in the table.)