title: SqlDataReader and SqlCommand in C#
body: <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      object functionReturnValue = null;
  
      using (System.Net.WebClient client = new System.Net.WebClient())
      {
          System.Collections.Specialized.NameValueCollection parameter = new System.Collections.Specialized.NameValueCollection();
          string url = &quot;https://www.itexmo.com/php_api/api.php&quot;;
  
          conn.Open();
          cmd = new SqlCommand(&quot;select  FirstYear from Numbers&quot;, conn);
  
          dr = cmd.ExecuteReader();
             
          parameter.Add(&quot;1&quot;, &quot;09123456789&quot;);
          parameter.Add(&quot;2&quot;, richTextBox1.Text);
          parameter.Add(&quot;3&quot;, &quot;TR-CCDIS629375_B9R26&quot;);
          parameter.Add(&quot;passwd&quot;, &quot;u$454g4gi&amp;w&amp;&quot;);
  
          dynamic rpb = client.UploadValues(url, &quot;POST&quot;, parameter);
  
          functionReturnValue = (new System.Text.UTF8Encoding()).GetString(rpb);
          MessageBox.Show(&quot;Message has been sent!.&quot;, &quot;Message&quot;, MessageBoxButtons.OK);
          dr.Close();
          conn.Close();
      }
  }
  </code></pre>
  <p>This code here is a normal code to send sms using an API to a single number, I only added the <code>SqlCommand</code> to it and I know what to do about it, how am I going to get the multiple numbers from my database which I  want to access using a comboBox? As you can see in my <code>cmd SqlCommand</code> I'm trying to retrieve the data but I don't know to how to convert into  a parameter to replace the single number in the parameter and send sms to multiple numbers. I am new to C#, any help is much appreciated.</p>