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?

different table for different user
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: different table for different user
*
#49524
Re:different table for different user 10 Years, 1 Month ago Karma: 748
For example if you want to show articles which are created by currently logged user, use the following SQL query:

Code:


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



Regards,
ARI Soft
The administrator has disabled public write access.
 
#49527
Re:different table for different user 10 Years, 1 Month ago Karma: 0
It Works.

But what can i do, if i add a new column in #_users named "clavesuc", its possible obtain this value for use in query??

Regards.... again
The administrator has disabled public write access.
 
#49528
Re:different table for different user 10 Years, 1 Month ago Karma: 748
If you want to use user name or user login instead of user ID, use {$UserName} and {$UserLogin} predefined variables.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49531
Re:different table for different user 10 Years, 1 Month ago Karma: 0
Ok, i got it!!

Thanks!!
The administrator has disabled public write access.
 
Go to topPage: 12