Search Results For C

Hardball (2001)
Keanu Reeves, Diane Lane and a young Michael B. Jordan score in this uplifting story of triumph over adversity. Conor O'Neill (Reeves) is a down-on-his-luck gambler in debt to loan sharks. Desperate...

Hardcore Henry (2016)
Strap in. HARDCORE HENRY is one of the most unflinchingly original wild-rides to hit the big screen in a long time: You remember nothing. Mainly because you’ve just been brought back from the...

Harlem Nights (1989)
In the waning days of Prohibition, Sugar Ray (Richard Pryor) and his adopted son, Quick (Eddie Murphy), ran a speakeasy called Club Sugar Ray. When gangster Bugsy Calhoune (Michael Lerner) learns that...

Harley Quinn (2019)
Harley Quinn (KALEY CUOCO) has finally broken things off once and for all with the Joker (ALAN TUDYK) and attempts to make it on her own as the criminal Queenpin of Gotham City in this half-hour adult...

Harold & Kumar Escape from Guantanamo Bay (2008)
HAROLD AND KUMAR ESCAPE FROM GUANTANAMO BAY marks the triumphant return of these two hilarious, slacker anti-heroes. The movie stars John Cho (AMERICAN PIE I & II, AMERICAN DREAMZ) as Harold and...

Harold & Kumar Go to White Castle (2004)
Harold & Kumar Go To White Castle takes the buddy comedy genre to mind-altering new "&;highs"&;. Straitlaced, by-the-book Harold (Cho) and his roommate, the rebellious Kumar (Penn), have...

Harold and the Purple Crayon (2024)
Inside of his book, adventurous Harold (Zachary Levi) can make anything come to life simply by drawing it. After he grows up and draws himself off the book's pages and into the physical world, Harold...

Harry Potter and the Chamber of Secrets (2002)
The follow-up to Harry Potter and the Sorcerer's Stone finds young wizard Harry Potter (Daniel Radcliffe) and his friends Ron (Rupert Grint) and Hermione (Emma Watson) facing new challenges during...

Harry Potter and the Deathly Hallows: Part 1 (2010)
Without the guidance and protection of their professors, Harry (Daniel Radcliffe), Ron (Rupert Grint) and Hermione (Emma Watson) begin a mission to destroy the Horcruxes, the sources of...

Harry Potter and the Deathly Hallows: Part 2 (2011)
The much-anticipated motion picture event is the second of two full-length parts. In the epic finale, the battle between the good and evil forces of the wizarding world escalates into an all-out war....


Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) If Not Page.IsPostBack Then BindDeals() End Sub Private Sub BindDeals() Dim cs As String = ConfigurationManager.ConnectionStrings("fd_main").ConnectionString ' 1) Count eligible rows Dim totalRows As Integer Using conn As New MySqlConnection(cs) Using cmd As New MySqlCommand( _ "SELECT COUNT(*) " & "FROM movies " & "INNER JOIN dealoftheday ON moviefk = movieid " & "WHERE discounttype = 1 " & "AND AppleTVURL IS NOT NULL AND AppleTVURL <> ''", conn) conn.Open() totalRows = Convert.ToInt32(cmd.ExecuteScalar()) End Using End Using If totalRows = 0 Then Exit Sub ' 2) Random offset Dim maxValidOffset As Integer = If(totalRows > 3, totalRows - 3, 0) Dim randomOffset As Integer = 0 If maxValidOffset > 0 Then Dim b(3) As Byte System.Security.Cryptography.RandomNumberGenerator.Fill(b) Dim raw As Integer = Math.Abs(BitConverter.ToInt32(b, 0)) randomOffset = raw Mod (maxValidOffset + 1) End If ' 3) Main query – fixed string quotes Dim strSQL As String = _ "SELECT MovieName, poster, PhotoPrefix, iTunesRealID, iTunesID, " & "originalprice, discountedprice, AppleTVURL " & "FROM movies " & "INNER JOIN dealoftheday ON moviefk = movieid " & "WHERE discounttype = 1 " & "AND AppleTVURL IS NOT NULL AND AppleTVURL <> '' " & "ORDER BY topdeal DESC, dateadded DESC " & "LIMIT @lim OFFSET @off;" Using conn As New MySqlConnection(cs) Using cmd As New MySqlCommand(strSQL, conn) cmd.Parameters.Add("@lim", MySqlDbType.Int32).Value = 3 cmd.Parameters.Add("@off", MySqlDbType.Int32).Value = randomOffset Dim dt As New DataTable() Using da As New MySqlDataAdapter(cmd) conn.Open() da.Fill(dt) End Using If dt.Rows.Count > 0 Then dgBestDealsSidePanel.DataSource = dt dgBestDealsSidePanel.DataBind() End If End Using End Using End Sub

SPONSORED LINKS