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?

using session variables to access mysql backend
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: using session variables to access mysql backend
#45234
using session variables to access mysql backend 11 Years, 1 Month ago Karma: 0
Hi,
I'm used to define mysql variables (db, username, pwd) within session variables in a single PHP file.

How can I use such variables for the queries which your component relies on, in options - choose db type - user/password/db?

I tried writing {$db_data_user}, but it tells me "Access denied for user '{$db_data_user}'@'213.164.95.125' (using password: YES)"

Thanks

Mauro
The administrator has disabled public write access.
 
#45235
Re:using session variables to access mysql backend 11 Years, 1 Month ago Karma: 760
Hello,

The extension doesn't support ability to use variables for connection parameters. It can be used only in "WHERE" clause of "SELECT" SQL query.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#45236
Re:using session variables to access mysql backend 11 Years, 1 Month ago Karma: 0
That's really a bad news

I have tens of ARI tables and I have to change the connection parameters quite often, between testing and production.

Do you have any other idea to optimize such a job and avoid I need to manually update such information table by table?

Thanks

Mauro
The administrator has disabled public write access.
 
#45237
Re:using session variables to access mysql backend 11 Years, 1 Month ago Karma: 760
Do you show modules in module positions or load them into articles or other content?

PS: You can also modify <joomla_directory>/modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesDataSqlModel.php file for your needs. See "getDataFromExternalSource" method.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#45238
Re:using session variables to access mysql backend 11 Years, 1 Month ago Karma: 0
I will check. Thank you for Always great and very quick answers.
The administrator has disabled public write access.
 
Go to topPage: 1