{Need Help}mysql in c# menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Mrbrightside's Avatar Banned
    Reputation
    36
    Join Date
    Dec 2008
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    {Need Help}mysql in c#

    ok so this is what i have so far
    class Program
    {
    static void Main(string[] args)
    {
    string MyConString = "SERVER=localhost;" + "DATABASE=user information;" + "UID=root;" + "PASSWORD=9blackheart;";

    MySqlConnection connection = new MySqlConnection(MyConString);

    MySqlCommand command = connection.CreateCommand(); MySqlDataReader Reader;

    command.CommandText = "select * from users";

    connection.Open(); Reader = command.ExecuteReader();

    while (Reader.Read()) {

    string thisrow = "";

    for (int i = 0; i < Reader.FieldCount; i++)
    thisrow += Reader.GetValue(i).ToString() + ","; System.Console.WriteLine(thisrow);}

    connection.Close();



    and it works perfectly but i want it to read for a username and password for verification is there anyway i can do this?

    {Need Help}mysql in c#
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://subversion.assembla.com/svn/e.../MySqlQuery.cs

    Check that out. Should answer all of your questions.

  3. #3
    Mrbrightside's Avatar Banned
    Reputation
    36
    Join Date
    Dec 2008
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    http://subversion.assembla.com/svn/e.../MySqlQuery.cs

    Check that out. Should answer all of your questions.
    No not really thanks for trying though, maybe i did not explain clearly enough so far i can read from mysql database and read tables but im trying to find out lets say (textbox1.text equals the username admin in the mysql database)
    im trying to make an authentication sequence to login from my program, and read from mysql.

  4. #4
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You obviously missed the point...

    If you can't figure out how to do simple comparisons, you should probably go back to the basics before trying to write some auth system.

Similar Threads

  1. Replies: 1
    Last Post: 03-22-2009, 03:48 AM
  2. [NEED-HELP] MySQL problem
    By slakt in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 12-26-2008, 04:42 PM
  3. [MYSQL problem] to big of a DB need help
    By jmulhern345 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 07-04-2008, 03:51 PM
  4. Ascent/LogOnServer/MySQL - Error message - Need help!
    By Habakka in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-21-2008, 12:56 PM
  5. Need Help, MySQL Error
    By Maree in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 01-27-2008, 06:45 PM
All times are GMT -5. The time now is 06:43 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search