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?

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, 3 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, 3 Months ago Karma: 747
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, 3 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, 3 Months ago Karma: 747
SQL supports JOIN construction.

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