Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to import MySql database to windows phone 8.1 app

$
0
0

Hello everyone I'm Designing a new windows phone 8.1 app and I need some help from you.

I have a database that Im using for the some app but for Windows.

currently using db4free.net

and use this code

  Mysqlconn = New MySqlConnection
        Mysqlconn.ConnectionString = "server=db4free.net;Port=3306; user id=%%%%%; password=%%%%%%%; database=%%%%%%%%"
        Dim READER As MySqlDataReader

        Try
            Mysqlconn.Open()
            Dim Query As String
            Query = "SELECT * FROM Manager WHERE Name='" & TextBox1.Text & "' AND Password='" & TextBox2.Text & " ' "
            Command = New MySqlCommand(Query, Mysqlconn)
            READER = Command.ExecuteReader
            Dim count As Integer
            count = 0
            While READER.Read
                count = count + 1
            End While
            If count = 1 Then
                MsgBox("Mire se vini'" & TextBox1.Text & "'")
                FORMAKRYESORE.Show()
                Me.Close()

            ElseIf count > 1 Then
                MsgBox("Mire se vini'" & TextBox1.Text & "'")
            Else
                MsgBox("Manager'" & TextBox1.Text & "' is not in the data")
            End If

            Mysqlconn.Close()

        Catch ex As MySqlException
            MsgBox(ex.Message)
        Finally
            Mysqlconn.Dispose()

        End Try

this is the code that  I use to login.  but on windows phone cant import Mysql connector. not sure why... any suggestion how to deal with this?

or should I use SQLite? I dont know nothing about the code on SQLite...


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>