Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Display quiz items with prevquiz condition
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Display quiz items with prevquiz condition
#66911
Display quiz items with prevquiz condition 4 Years, 2 Months ago Karma: 0
Hi Team,

We'd like to display a TO-DO ari quizes list via datatables, all these quizes have prevquiz,we only need to show items with prevquiz passed, any guidance on this?

Thanks
Blues
The administrator has disabled public write access.
 
#66913
Re:Display quiz items with prevquiz condition 4 Years, 2 Months ago Karma: 760
Hello,

SQL query will look like this:

Code:


SELECT
  Q.QuizId,
  Q.QuizName
FROM
 #__ariquiz Q INNER JOIN #__ariquiz PQ
   ON Q.PrevQuizId = PQ.QuizId
 INNER JOIN #__ariquizstatisticsinfo SI
   ON PQ.QuizId = SI.QuizId AND SI.Passed = 1 AND SI.UserId = {$UserId} 
GROUP BY
  Q.QuizId



Regards,
ARI Soft
The administrator has disabled public write access.
 
#66914
Re:Display quiz items with prevquiz condition 4 Years, 2 Months ago Karma: 0
Thanks for quick response and the beautiful code!
The administrator has disabled public write access.
 
Go to topPage: 1