T
TheDude5B
Hi, i dont know if this is the best place to post this, if there is a
better forum could you let me know.
My problem: i am new to asp.net and am using a MySQL database to hold
my information. I have the code:
*******************************************************************
Dim myConnection As MySqlConnection
Dim myDataAdapter As MySqlDataAdapter
Dim myDataSet As DataSet
Dim strSQL As String
Dim iRecordCount As Integer
myConnection = New MySqlConnection("server=mysever; user id=myid;
password=mypassword; database=mydatabase; pooling=false;")
strSQL = "SELECT * FROM xbmembers;"
myDataAdapter = New MySqlDataAdapter(strSQL, myConnection)
myDataSet = New Dataset()
myDataAdapter.Fill(myDataSet, "xbmembers")
*******************************************************************
I would like to be able to reference a single record from this table.
i.e. In asp i would have written
-----------------------------------------------------
WHILE NOT adoRS.EOF
IF UserName = adoRS("member_username") THEN
do something
END IF
adoRS.MoveNext
WEND
-----------------------------------------------------
What is the best way in which i could do this using asp.net accessing a
MySQL database?
Thanks Tim James
better forum could you let me know.
My problem: i am new to asp.net and am using a MySQL database to hold
my information. I have the code:
*******************************************************************
Dim myConnection As MySqlConnection
Dim myDataAdapter As MySqlDataAdapter
Dim myDataSet As DataSet
Dim strSQL As String
Dim iRecordCount As Integer
myConnection = New MySqlConnection("server=mysever; user id=myid;
password=mypassword; database=mydatabase; pooling=false;")
strSQL = "SELECT * FROM xbmembers;"
myDataAdapter = New MySqlDataAdapter(strSQL, myConnection)
myDataSet = New Dataset()
myDataAdapter.Fill(myDataSet, "xbmembers")
*******************************************************************
I would like to be able to reference a single record from this table.
i.e. In asp i would have written
-----------------------------------------------------
WHILE NOT adoRS.EOF
IF UserName = adoRS("member_username") THEN
do something
END IF
adoRS.MoveNext
WEND
-----------------------------------------------------
What is the best way in which i could do this using asp.net accessing a
MySQL database?
Thanks Tim James