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?

Parameters from URL to where clause (arisqltable)
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Parameters from URL to where clause (arisqltable)
#3217
Parameters from URL to where clause (arisqltable) 14 Years, 2 Months ago Karma: 0
Hi,

How to pass parameters in the "WHERE" clause (arisqltable) from the url?

I can create URLs with arisqltable and concat but I don't know how to use the parameters of the URL with arisqltable ...


Do you help me?

Thank you
The administrator has disabled public write access.
 
#3218
Re:Parameters from URL to where clause (arisqltable) 14 Years, 2 Months ago Karma: 748
Hello,

Unfortunately now 'ARI SQL Table' plugin doesn't provide this possibility, but you can use DirectPHP extension for this purpose. This extension provides ability to use PHP commands inside Joomla! content pages. In you case, you can try the following code snippet with DirectPHP extension:

Code:


<?php
$db =& JFactory::getDBO();
$pName = $db->Quote(JRequest::getCmd('filter', ''));
?>
{arisqltable}
    {arisqltablequery}
SELECT id AS ID,name AS NAME 
FROM jos_users
WHERE name LIKE <?php echo $pName; ?>
    {/arisqltablequery}
{/arisqltable}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#3219
Re:Parameters from URL to where clause (arisqltable) 14 Years, 2 Months ago Karma: 0
Wonderful !!

It's works.

Thank you very much !!!
The administrator has disabled public write access.
 
Go to topPage: 1