Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: MySql Login Pin
Paul Conrad5-May-07 12:45
professionalPaul Conrad5-May-07 12:45 
GeneralRe: MySql Login Pin
LegionFX5-May-07 12:51
LegionFX5-May-07 12:51 
GeneralRe: MySql Login Pin
Paul Conrad5-May-07 13:22
professionalPaul Conrad5-May-07 13:22 
GeneralRe: MySql Login Pin
LegionFX6-May-07 0:42
LegionFX6-May-07 0:42 
GeneralRe: MySql Login Pin
Paul Conrad6-May-07 4:05
professionalPaul Conrad6-May-07 4:05 
AnswerRe: MySql Login Pin
P P Vilsad6-May-07 4:51
P P Vilsad6-May-07 4:51 
GeneralRe: MySql Login Pin
LegionFX6-May-07 9:17
LegionFX6-May-07 9:17 
GeneralRe: MySql Login Pin
LegionFX6-May-07 9:30
LegionFX6-May-07 9:30 
case closed, finaly its done.
~
Dim sSQL As String
Dim conn As New MySqlConnection("server=xxxxxx;" _
& "user id=xxxxxxx;" _
& "password=xxxxxxxx;" _
& "database=xxxxxxxx")
Dim cmd As MySqlCommand
Dim drData As MySqlDataReader
Try

conn.Open()
sSQL = ("SELECT * FROM tblSysLogin WHERE username='" & TextBox1.Text.ToString & "' and password='" & TextBox2.Text & "'")


cmd = New MySqlCommand(sSQL, conn)
drData = cmd.ExecuteReader()

If drData.Read() Then
MsgBox("success")
Else
MsgBox("incorrect login")
End If


Catch myerror As MySqlException
MessageBox.Show("Error Connecting to Database: " & myerror.Message)

End Try


so simple and so complicated.... lol thanks for all you help guys. Cheers Wink | ;)
GeneralRe: MySql Login Pin
Paul Conrad6-May-07 16:50
professionalPaul Conrad6-May-07 16:50 
GeneralRe: MySql Login Pin
P P Vilsad7-May-07 0:44
P P Vilsad7-May-07 0:44 
Questionsearching about for mcpd exams(WINDOWs application) vb2005 Pin
saad badr5-May-07 10:56
saad badr5-May-07 10:56 
AnswerRe: searching about for mcpd exams(WINDOWs application) vb2005 Pin
Dave Kreskowiak6-May-07 4:41
mveDave Kreskowiak6-May-07 4:41 
AnswerRe: searching about for mcpd exams(WINDOWs application) vb2005 Pin
saad badr8-May-07 7:02
saad badr8-May-07 7:02 
GeneralRe: searching about for mcpd exams(WINDOWs application) vb2005 Pin
Dave Kreskowiak8-May-07 17:23
mveDave Kreskowiak8-May-07 17:23 
AnswerRe: searching about for mcpd exams(WINDOWs application) vb2005 Pin
Christian Graus6-May-07 11:38
protectorChristian Graus6-May-07 11:38 
Question[SOLVED] Making the cells in a DGV unselectable Pin
Mightor5-May-07 8:52
Mightor5-May-07 8:52 
Questionhelp with splash screen Pin
hbk_leo5-May-07 8:27
hbk_leo5-May-07 8:27 
AnswerRe: help with splash screen Pin
TwoFaced5-May-07 10:27
TwoFaced5-May-07 10:27 
AnswerRe: help with splash screen Pin
Dave Kreskowiak6-May-07 4:38
mveDave Kreskowiak6-May-07 4:38 
GeneralRe: help with splash screen Pin
Paul Conrad6-May-07 4:48
professionalPaul Conrad6-May-07 4:48 
GeneralRe: help with splash screen Pin
Dave Kreskowiak6-May-07 5:32
mveDave Kreskowiak6-May-07 5:32 
GeneralRe: help with splash screen Pin
Paul Conrad6-May-07 5:44
professionalPaul Conrad6-May-07 5:44 
AnswerRe: help with splash screen Pin
sumitarora7-May-07 0:00
sumitarora7-May-07 0:00 
Questionclose open forms in mdi-container Pin
Smithers-Jones5-May-07 5:25
Smithers-Jones5-May-07 5:25 
AnswerRe: close open forms in mdi-container Pin
manni_n5-May-07 11:19
manni_n5-May-07 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.