Newbie alert!
I am trying to get data from my mySQL database...
With some help, I have got this far, but there is an exception in data.dll
(??) on the :
"OleDbDataReader Reader = Command.ExecuteReader();"
line.
Can you see a problem here ?
string ConnectionString = "Location=myconn;Provider='MySqlProv.3.0';User
ID=*******;Integrated Security=;Data Source=******;Extended
Properties=;Password=********";
OleDbConnection Connection = new OleDbConnection(ConnectionString);
OleDbCommand Command = new OleDbCommand("Select id from users where
surname='Lister' ad firstname='Craig'", Connection);
Connection.Open();
OleDbDataReader Reader = Command.ExecuteReader();
// while(Reader.Read())
{
textBox1.Text = Reader["id"].ToString();
}
--
Websites:
http://www.thelisters.co.uk/
http://www.myschoolmates.com/
MSN Messenger: cr***********@hotmail.com