title: Select database values from textbox
body: <p>I have one listbox with 'firstname' and 'lastname' stored in it from the database.</p>
  
  <p>How do i write my query to retrieve information from the database selecting the index.</p>
  
  <p>I have</p>
  
  <pre><code>"Select * from table where firstname= '"+listbox1.Text+"' and lastname= '"+listbox1.Text+"' "
  </code></pre>
  
  <p>Dont work though</p>