Using MySQL would be
Code:
MySQLCursor, err = MySQLConnection:execute("SELECT COUNT(*) FROM Students WHERE YearID='"..sYearID.."' "); if not err then Count = MySQLCursor:fetch({},"n"); Dialog.Message("Notice", Count[1], MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); else Dialog.Message("Error", err); return "Error"; end
Leave a comment: