Home News Contact Us Forum About Us Joomla 1.0.x Demo Joomla 1.5 Demo Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 29/12/2011 Merry Christmas and Happy New Year!

    Dear visitors, our office will be closed from December 30 to January 2 due to the celebration of the New Year. You can purchase and download our products, but we can not guarantee quick answers to your questions for this period of time. Happy New Year! Your ARI Soft team.

  • 27/09/2011 ARI Smart Content v. 1.8.0

    ARI Smart Content v. 1.8.0 is ready. New version is compatible with Joomla! 1.5, 1.6 and 1.7 and it is released under GNU GPL license.


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) 1 Year, 12 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) 1 Year, 12 Months ago Karma: 276
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) 1 Year, 12 Months ago Karma: 0
Wonderful !!

It's works.

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