IMPORTANT QUESTION

  • Thread starter Thread starter Mazinnn
  • Start date Start date
M

Mazinnn

Guest
so, ive gotten many problems with this code and cant seem to find how to resolve it,

code is


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
using System.Data;

namespace Login
{
class DataBaseConnection
{

MySqlConnection connectionstring = new MySqlConnection("server=localhost;user id=root;database=login");

public void OpenConnection()
{

connectionstring.Open();

}
public void CloseConnection()
{

connectionstring.Close();

}
public DataTable ReadValue();


DataTable dt = new DataTable();
MySqlDataAdapter da = new MySqlDataAdapter("select* from passwords",connectionstring);

da.Fill(dt);
return dt;
}

}
}

PLEASE HELP ASAP

Continue reading...
 
Back
Top