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?

Update VIEW or delete etc
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Update VIEW or delete etc
#42229
Update VIEW or delete etc 11 Years ago Karma: 0
Is it possible to drop and create a VIEW using a query from Ari Data tables? Basically, I need a mysql view to be dynamic based on the user current logged in. How can I achieve this?
The administrator has disabled public write access.
 
#42230
Re:Update VIEW or delete etc 11 Years ago Karma: 748
Hello,

It is possible to use {$UserId} predefined variables in "WHERE" clause of "SELECT" SQL query. It will be replaced with ID of currently logged user. Sample query:

SELECT
id,
title
FROM
#__content
WHERE
created_by = {$UserId}

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1