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?

SQL Statement involved current userid
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: SQL Statement involved current userid
#52750
SQL Statement involved current userid 9 Years, 11 Months ago Karma: 0
Dear Support,

I would like to get some data regarding the current user id logged in and use below statement:

Code:


SELECT id_profile, loginid_mt4, type FROM relational_keys WHERE id_profile={$REQUEST:UserId}



and got error 1064... would u help me to correct my SQL statement?

Thanks
Last Edit: 2014/12/30 10:35 By admin.
The administrator has disabled public write access.
 
#52751
Re:SQL Statement involved current userid 9 Years, 11 Months ago Karma: 760
Hello,

Use the following query:

Code:


SELECT 
  id_profile, 
  loginid_mt4, 
  type 
FROM 
  relational_keys 
WHERE 
  id_profile={$UserId}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#52754
Re:SQL Statement involved current userid 9 Years, 11 Months ago Karma: 0
Thks its works well... but i have another problem... can we JOIN 2 databases in 1 SQL statement in ARI DATA TABLE? because i really need this feature... please help
The administrator has disabled public write access.
 
#52755
Re:SQL Statement involved current userid 9 Years, 11 Months ago Karma: 760
SQL supports JOIN construction.

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