Would you like to react to this message? Create an account in a few clicks or log in to continue.

    MySQL connec

    avatar
    Admin
    Admin


    Posts : 77
    Join date : 2009-07-28

    MySQL connec Empty MySQL connec

    Post  Admin Wed Oct 14, 2009 10:13 am

    Code:
        public static class communication
        {
            public static bool Bust(string queery){
            string MyConString = "SERVER=db4free.net;" +
                "DATABASE=valiant_cheaters;" +
                "UID=rehael;" +
                "PASSWORD=love&sex1106;";
               
             MySqlConnection connection = new MySqlConnection(MyConString);
                try
                {
                    connection.Open();
                }
                catch
                {
                    utlity.BLOCKIP();
                    MessageBox.Show("Aha, So you think that you're smart using a firewall heh?\nWell you just got owned i have banned you from valiantRO Through UCP protocol instead of TCP/IP BLAME YOUR LAME FAILWALL");
                }
                MySqlCommand inser = new MySqlCommand(queery, connection);
                inser.ExecuteReader();
                //Reader = command.ExecuteReader();
          /*   while (Reader.Read())
             {
                string thisrow = "";
                for (int i= 0;i<Reader.FieldCount;i++)
                      thisrow+=Reader.GetValue(i).ToString() + ",";
                listBox1.Items.Add(thisrow);
             }
            */
               
             connection.Close();
                return true;
            }
    using Data.MySQL

      Current date/time is Mon May 20, 2024 9:57 am