Hallo
kan iemand mij aub helpen dit is mijn code maak connectie met database ik wil bv (USERONLINE='" + useronline.Text +) op textbox10.Text tonen, zo als wanneer button klik 10 users online wanneer programma sluit dan 10 terug valt naar 9 users.
alvast dan voor hulp.
private void button6_Click(object sender, EventArgs e)
{
{
string USERONLINE;
string connString = "Server=xxxxxxl;Port=3306;Database=xxxxx;Uid=xxxx;password=xxxxxx;";
MySqlConnection conn = new MySqlConnection(connString);
MySqlCommand command = conn.CreateCommand();
command.CommandText = "Update online Set USERONLINE='" + useronline.Text + "' WHERE ID=1";
conn.Open();
command.ExecuteNonQuery();
conn.Close();
}
kan iemand mij aub helpen dit is mijn code maak connectie met database ik wil bv (USERONLINE='" + useronline.Text +) op textbox10.Text tonen, zo als wanneer button klik 10 users online wanneer programma sluit dan 10 terug valt naar 9 users.
alvast dan voor hulp.
private void button6_Click(object sender, EventArgs e)
{
{
string USERONLINE;
string connString = "Server=xxxxxxl;Port=3306;Database=xxxxx;Uid=xxxx;password=xxxxxx;";
MySqlConnection conn = new MySqlConnection(connString);
MySqlCommand command = conn.CreateCommand();
command.CommandText = "Update online Set USERONLINE='" + useronline.Text + "' WHERE ID=1";
conn.Open();
command.ExecuteNonQuery();
conn.Close();
}
Laatst bewerkt: