Home News Contact Us Forum About Us Joomla 1.0.x Demo Joomla 1.5 Demo Products F.A.Q.
Shopping Cart


Recent Events
  • 27/07/2010 ARI Image Slider v. 1.1.0 is ready

    We are glad to announce new version of ARI Image Slider extension. It provides possibility to define link target, generate thumbnails and can be integrated with different popular Joomla! lightbox extensions.

  • 30/06/2010 Mighty Joomla! data tables extension

    ARI Data Tables breathes new life into plain HTML tables. The module converts HTML tables into powerful and functional tables with possibilities to sort, filter and paging data. It can also create different charts based on data from tables. The extension can load data from SQL databases and CSV files. See it in action here.


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) 5 Months, 2 Weeks 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) 5 Months, 2 Weeks ago Karma: 50
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) 5 Months, 2 Weeks ago Karma: 0
Wonderful !!

It's works.

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