PHP Code:// Khai bao cac Connection voi DataAdapter gi gi do o day
string sqlQuery = "SELECT count(ma_nv) FROM Nhan_Vien ";
// Tao mot SqlCommand cmd co tham so SqlQuery o tren vao
try
{
// Open Connection
// Thuc thi Command
textBox1.Text = cmd.ExecuteScalar().ToString();
}
catch ( SQLException sqle)
{
// Thong bao error xuat hien
}
finally
{
// Dong cac ket noi
// Dam bao qua trinh thuc thi lenh
}