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?

Predefined variables
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Predefined variables
#14644
Predefined variables 13 Years, 6 Months ago Karma: 0
Hi,

I'm trying to use predefined variables in the sql string but it doesn't seem to work, no error is returned but the result of the substitution seems to be blank. I used it in various ways and for example in a concat function with a table field but I only get the content of the table field.

Any idea ?
The administrator has disabled public write access.
 
#14645
Re:Predefined variables 13 Years, 6 Months ago Karma: 760
Hello,

Could you specify what SQL query you use? Have you tried to enable "SQL -> Debug mode" parameter?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#14653
Re:Predefined variables 13 Years, 6 Months ago Karma: 0
Here is an example :

select

ceiling(campagne/100000) as ex,client,domaine,article,total,facture,total-facture as afacturer,carnet

from orderData

where domaine='{$UserGroupId}'

Edit:Debug mode seems to crash the program
Last Edit: 2011/05/10 12:09 By enricocerica.
The administrator has disabled public write access.
 
#14654
Re:Predefined variables 13 Years, 6 Months ago Karma: 760
It is hard to say what's wrong because we don't know what is stored in "orderData" table. Does "domaine" column contain user group id? Probably it contains user id or something another?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#14655
Re:Predefined variables 13 Years, 6 Months ago Karma: 0
More simply, such a sql request does not work as expected :

select
concat(customerName,'{$UserName}')
from
orderData

I only get the customerName field value without the username concatenated.

Duno if this is important but I didn't mentioned it, I'm in Joomla 1.6
The administrator has disabled public write access.
 
#14665
Re:Predefined variables 13 Years, 6 Months ago Karma: 760
Do you see page with the module under logged user? If yes, could you provide temporary access to your Joomla! backend and link to page where we can see the problem by email that we can investigate the problem?

The next SQL query works fine on our test server when we see page with "ARI Data Tables" module under logged user:

Code:


SELECT
 CONCAT(id,{$UserName})
FROM
 #__content



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