any help please

Posts 110 of 10 · Page 1 of 1
any help please
hello guys , im using visual basic 2010 express
so i need help
im trying to make login form and it's work on my pc only fine but
when im giving it my friend it's not work i got error btw ( im using database online!)
You have to distribute all .dll files you used to create your application
@[MoXa].1
it may be that you are using external libraries, if you are using them, the error is that it isn't not able to load them
if you have always this problem, post your code
@Raydenman

this is my code

Imports System.Data.SqlClient
Imports MySql.Data.MySqlClient
Dim MySqlConnection As MySqlConnection
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
MySqlConnection = New MySqlConnection
MySqlConnection.ConnectionString = "server=*******;port=******; user id=******; password=******; database=******"
MySqlConnection.Open()
Dim Myadapter As New MySqlDataAdapter
Dim sqlquary = "SELECT * From Users WHERE username='" & TextBox1.Text & "'AND password='" & TextBox2.Text & "';"
Dim command As New MySqlCommand
command.Connection = MySqlConnection
command.CommandText = sqlquary
Myadapter.SelectCommand = command
Dim Mydata As MySqlDataReader
Mydata = command.ExecuteReader
If Mydata.HasRows = 0 Then
MsgBox("Incorrect username or password.")
Else
Form1.Show()
Me.Hide()
End If
End Sub
Quote Originally Posted by MoXa
this is my code
1. you should not connect your application which will be distributed to the user with your database (because they can easily extract the host, password, username and databasename)
2. you have to send him the mysql library you used to create this
@Biesi can you explain more for me!
Quote Originally Posted by [MoXa].1 View Post
@Biesi can you explain more for me!
he said that you can use also PHP to register/login (preferably with custom user-agent), and using webrequest
it's free or what
and how can i use php ? and make register website !
Quote Originally Posted by [MoXa].1 View Post
it's free or what
and how can i use php ? and make register website !
yes, it's free, you can also use XAMPP platform or using free webhosting like 000webhost to host your modules for login and register .
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?