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?

Pass $_SERVER parameter to SQL query
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Pass $_SERVER parameter to SQL query
#67236
Pass $_SERVER parameter to SQL query 3 Years, 10 Months ago Karma: 0
Hi - I know it is possible to do this;

SELECT
id,
title
FROM
some_table
WHERE
id = {$REQUEST:some_key|empty:''}


But is $SERVER also available? Can't seem to get any reference to $SERVER to work.
The administrator has disabled public write access.
 
#67237
Re:Pass $_SERVER parameter to SQL query 3 Years, 10 Months ago Karma: 760
Hello,

It is possible to use {$REQUEST}, {$SESSION} and some predefined variables. Variables are parsed in "prepareQuery" method in <joomla_directory>/modules/mod_aridatatables/includes/kernel/DataTables/Models/class.DataTablesDataSqlModel.php file.

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