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?

Help with arijdatatable and sql database
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Help with arijdatatable and sql database
#22131
Help with arijdatatable and sql database 12 Years, 5 Months ago Karma: 0
I'm new to this and haven't been able to make this work using the descriptions in the plugins.

I have a database that I want to query and then display that data using jdatatable.

Here is the code I have in the article.

{arijdatatable}
{arisqltable bPaginate="true"}
{ariconnectionstring dbHost="localhost" dbUser="***" dbPass="***" dbName="***" dbType="mysql"}

{arisqltablecolumns}
{arisqltablecolumn id="id" alias="id" className="idg"}
{arisqltablecolumn id="membernumber" alias="membernumber" headerClassName="head"}

{/arisqltablecolumn}
{/arisqltablecolumns}

{arisqltablequery}
SELECT id AS id, membernumber AS membernumber FROM jos_mgamembers
{/arisqltablequery}

{/arisqltable}
{/arijdatatable}

Can someone point me to an example of a jdatatable that queries a mysql database.

Any help is much appreciated.
Last Edit: 2011/11/28 06:36 By admin.
The administrator has disabled public write access.
 
#22133
Re:Help with arijdatatable and sql database 12 Years, 5 Months ago Karma: 747
Hello,

If you want to show data from Joomla! database using "ARI JDataTable" plugin, use the next code:

Code:


{arijdatatable bPaginate="true"}
  {arisqltable}
    {arisqltablequery}
      SELECT id AS id, membernumber AS membernumber FROM #__mgamembers
    {/arisqltablequery}
  {/arisqltable}
{/arijdatatable}



PS: Check that "System - ARI Smart Content" plugin is enabled and if you use a WYSIWYG editor, switch it to plain text mode before inserting plugin code.

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