title: How to return MySQL table entries by specified value ASP.net/C#
body: <p>I know its probably something simple but its been driving me nuts for 2 days now</p>
  
  <p>In short, what I want to do is return all of the entries from a specific table based on a value fed into the sql string from a label that holds the appropriate value</p>
  
  <p>This is what I have currently, and it works, but I don't want it to be hardcoded to 'admin':</p>
  
  <pre><code>sqlString = "SELECT * FROM mail WHERE fromuser = 'admin'";
  </code></pre>
  
  <p>The above returns the entries in the table where the fromuser value is 'admin'</p>
  
  <p>Like I said it works fine. What I want to do is something more like this:</p>
  
  <pre><code>sqlString = "SELECT * FROM mail WHERE fromuser = " + lblUsername.Text;
  </code></pre>
  
  <p>Where the lblUsername.Text is the value of the currently logged in user (in this case its admin just like before)</p>
  
  <p>So my question is how to I feed the label value into the sql string so that I don't need to hardcode it as 'admin' so that what is returned changes with the value of lblUsername.Text?</p>