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?

Getting data out of a SQL database
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Getting data out of a SQL database
#31879
Getting data out of a SQL database 11 Years, 9 Months ago Karma: 0
Hi,

I just installed all of the package Data Tables and configured a module with an external database.
In this datbase is a tabel called "Players" from which I want to show the data in frontend by the module.
This Tabel is build in a sub dtabase at the normal Joomla databse and filled with a frontend parser. everthing works fine but what "calls" the data out from this database ?

This one ?
SELECT *
FROM `Players`
LIMIT 0 , 30


The connection to the external database should be oke.
Tabletype= Ari Data Table
Sourcetype= SQL

Can you provide me with some help ?

Thanx in advance

Regards
Frank
The administrator has disabled public write access.
 
#31881
Re:Getting data out of a SQL database 11 Years, 9 Months ago Karma: 748
Hello,

The module shows data from a database based on SELECT SQL query. The query is entered in "SQL -> SQL query" parameter. In your case the query is:

SELECT *
FROM `Players`
LIMIT 0 , 30

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31887
Re:Getting data out of a SQL database 11 Years, 9 Months ago Karma: 0
I'm sorry but you reply with

SELECT *
FROM `Players`
LIMIT 0 , 30

but it is the same as I said. So how can I call the databse-data in a right way ?
I get now this error:

Warning: array_flip() expects parameter 1 to be array, null given in /home/huminator/domains/huminator.nl/public_html/modules/mod_aridatatables/mod_aridatatables.php on line 81
No data available.

Though, there is data in the table 'Players' into my database.
The administrator has disabled public write access.
 
#31888
Re:Getting data out of a SQL database 11 Years, 9 Months ago Karma: 748
Set "SQL -> Debug" parameter to "Yes" and set "SQL -> Revert data" and "SQL -> Graph transformation -> Enable" parameters to "No".

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31889
Re:Getting data out of a SQL database 11 Years, 9 Months ago Karma: 0
extra info....config module-part External DB.
The administrator has disabled public write access.
 
#31890
Re:Getting data out of a SQL database 11 Years, 9 Months ago Karma: 0
OKay I'm one step further.

Now I get this error: (syntax SQL ?)

(mysql): SELECT * FROM `Players` LIMIT 0 , 30 LIMIT 0,1
Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 3

Warning: array_flip() expects parameter 1 to be array, null given in /home/huminator/domains/huminator.nl/public_html/modules/mod_aridatatables/mod_aridatatables.php on line 81
No data available.
The administrator has disabled public write access.
 
Go to topPage: 123