Exemple #1
0
        public string Load_The_Loai_Phim(int i)
        {
            ThuVienKetNoiThuatToan kn = new ThuVienKetNoiThuatToan();
            string tag = kn.Ham_ExecuteScalar("select GENERES from MOVIES where MOVIEID = " + i).Trim();

            return(tag);
        }
Exemple #2
0
        //ThuVienKetNoiThuatToan kn = new ThuVienKetNoiThuatToan();

        public string URL_IMDB(int i)
        {
            ThuVienKetNoiThuatToan kn = new ThuVienKetNoiThuatToan();
            string id  = kn.Ham_ExecuteScalar("select IMDBID from LINK where MOVIEID = " + i).Trim();
            int    dem = id.Length;

            for (; dem < 8; dem++)
            {
                id = "0" + id;
            }
            return("https://www.imdb.com/title/tt" + id);
        }