title: Prepared SELECT statement in .Net
body: <p>I can't understand what I am doing wrong, I can't seem to SELECT with a prepared statement. However I can INSERT with a prepared statement.</p>
  
  <pre><code>MySqlCommand cmd = new MySqlCommand("SELECT * FROM code_post WHERE name = ?postRequired LIMIT 1",  dbcon);
  cmd.Parameters.Add(new MySqlParameter("?postRequired", requestString));
  cmd.ExecuteNonQuery();
  
  DataSet ds = new DataSet();
  cmd.fill(ds, "result");
  try {
               thisBlog = ds.Tables["result"].Rows[0];
  } catch {
               invalid();
               return;
  }
  </code></pre>
  
  <p>Any advice on this would be greatly appreciated!</p>