I've done some searching for the answer, but only find a lot of PHP answers. I need this for a C# application. Can any one point me in the right direction?
I'm doing this, but this only returns the first row into my variable:
Query("SELECT SaksNummer FROM casetracking")
public static string Query(string query)
{
string x;
mysqlCon.Open();
cmd = new MySqlCommand(query, mysqlCon);
x = cmd.ExecuteScalar().ToString();
mysqlCon.Close();
return x;
}