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?

Use PHP variable in plugin
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Use PHP variable in plugin
#30849
Use PHP variable in plugin 11 Years, 10 Months ago Karma: 0
Hi,
I'd like to know how to put a variable into the plugin code so I can filter data by a certain date.

Ex:

<?php
$myDate = "08/12/2012";
?>
{arijdatatable bPaginate="true" bFilter="true"}
{arisqltable}
{ariconnectionstring dbHost="localhost" dbName="xxxxxxxxxx" dbUser="xxxx" dbPass="xxxxxxxx" dbType="xxxx" persistent="false"}
{arisqltablequery}
SELECT * FROM ap_form_10805 WHERE DATE(date_created) = <?php echo $myDate ?>
{/arisqltablequery}
{/arisqltable}
{/arijdatatable}
Last Edit: 2012/08/23 15:44 By fireman.Reason: edit
The administrator has disabled public write access.
 
#30850
Re:Use PHP variable in plugin 11 Years, 10 Months ago Karma: 748
Hello,

You can use DirectPHP plugin.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30851
Re:Use PHP variable in plugin 11 Years, 10 Months ago Karma: 0
Thanks...
What is the difference between Ari Smart Content and Ari Data Tables? I bought Smart Content, but I really probably should have gotten Data Tables, because based on the forums posts, Data Tables seems more configurable and flexible.
The administrator has disabled public write access.
 
#30852
Re:Use PHP variable in plugin 11 Years, 10 Months ago Karma: 748
"ARI Data Tables" is a module. You can see the module in action here. All parameters can be configured in module settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30853
Re:Use PHP variable in plugin 11 Years, 10 Months ago Karma: 0
I bought the wrong one. If I buy the Data Tables right now, can you expidite the DL as soon as it clears?
The administrator has disabled public write access.
 
#30854
Re:Use PHP variable in plugin 11 Years, 10 Months ago Karma: 748
Could you explain in more details what do you mean under "can you expidite the DL as soon as it clears?"?

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