Posts

Insert into mySql table with C#

Image
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; private void cmdAdd_Click( object sender, EventArgs e) { MySqlConnection conn= new MySqlConnection (); MySqlCommand cmd = new MySqlCommand (); string myConnectionString ; string cmdString ; myConnectionString = "server=127.0.0.1; uid=root; pwd=xxxxxx; database=test" ; cmdString = "insert into t_students(AdmNo,FirstName,LastName) values('" + txtAdmNo.Text + "','" +                               txtFirstName.Text + "','" + txtLastName.Text + "');" ; try { conn.ConnectionString = myConnectionString; conn.Open(); cmd.Connection = conn; ...

How to Learn Effectively: A Comprehensive Guide

Learning is a lifelong journey. Whether you're a student, a professional, or simply curious, effective learning strategies can significantly enhance your understanding and retention of information. Here are some proven techniques to help you learn more efficiently: 1. Active Learning Engage Actively: Instead of passively absorbing information, actively engage with it. Ask questions, take notes, and participate in discussions. Practice Regularly: Consistent practice reinforces learning. Dedicate specific time slots for review and practice. Teach Others: Explaining concepts to others solidifies your understanding. 2. Effective Study Techniques Pomodoro Technique: Study in focused 25-minute intervals, followed by short breaks. Spaced Repetition: Review information at increasing intervals to strengthen memory. Mind Mapping: Visually organize information to enhance understanding and recall. Mnemonic Devices: Use memory aids like acronyms, rhymes, or visual associations. ...