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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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?

Showing table entries for specific user
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Showing table entries for specific user
#34562
Showing table entries for specific user 11 Years, 12 Months ago Karma: 0
Hello,

I use the data tables and are looking for a solution which
shows only a part of a table depending on the current user.

I know that this following statement in the SQL Section
is not working but does anybody got an idea how to solve that?

SELECT * FROM DEVICE WHERE ID = JFactory::getUser()->id

With best regards
Knut
Last Edit: 2012/11/28 17:38 By knutkallsen.
The administrator has disabled public write access.
 
#34566
Re:Showing table entries for specific user 11 Years, 12 Months ago Karma: 760
Hello,

Use the following SQL query:

SELECT * FROM DEVICE WHERE ID = {$UserId}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#34570
Re:Showing table entries for specific user 11 Years, 12 Months ago Karma: 0
Hi,

wow that was fast & it works!

Many thanks from Germany
Knut

PS: Could you give me a hint where I can find more about these Parameters like {$UserId}?
Thanks again for any comment!
Last Edit: 2012/11/28 17:37 By knutkallsen.
The administrator has disabled public write access.
 
#34571
Re:Showing table entries for specific user 11 Years, 12 Months ago Karma: 760
You are welcome. See tooltip for "SQL -> SQL query" parameter. It contains list of supported predefined variables.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#34585
Re:Showing table entries for specific user 11 Years, 12 Months ago Karma: 0
Hi,

aaaah I used Google and the forum search function but couldn't find anything related to
my subject. Tricky place to find

With best regards
Knut
The administrator has disabled public write access.
 
Go to topPage: 1