Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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?

Columns to display
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Columns to display
#6276
Columns to display 14 Years, 3 Months ago Karma: 0
Hi:

I have a table that I would like to display and I would only like to display certain fields.

The table is an SQL table.

The Columns are: 'ID', 'Name', 'Last Name', and 'Birthday'

I only want to display 'Name', 'Last Name', and 'Birthday' but do not want to display 'ID'.

How can I do that?
The administrator has disabled public write access.
 
#6277
Re:Columns to display 14 Years, 3 Months ago Karma: 760
Hello,

You can specify what fields you want to select in SQL query. For example:

Code:


SELECT `Name`, `Last Name`, `Birthday` FROM tbl



Regards,
ARI Soft
The administrator has disabled public write access.
 
#6281
Re:Columns to display 14 Years, 3 Months ago Karma: 0
And if I want to exclude certain rows?

That is why I have added the ID field. I assumed that would be the best way to exclude some data on a row-by-row basis.
The administrator has disabled public write access.
 
#6282
Re:Columns to display 14 Years, 3 Months ago Karma: 760
You can exclude select necessary rows with help WHERE construction. For example, if you want to exclude rows with ID 18 and 19, the next SQL query can be used:

Code:



SELECT `Name`, `Last Name`, `Birthday` FROM tbl WHERE `ID` NOT IN (18, 19)



Regards,
ARI Soft
The administrator has disabled public write access.
 
#6283
Re:Columns to display 14 Years, 3 Months ago Karma: 0
This may be a bit more complex.

I want to use the "jos_users" table and have it display all the users except those whose ID I exclude,

Then, I want it to add further data using the "jos_contact_details" table for those users.

Finally, I want it to link to have a link to that specific users contact page (default Joomla page).

Is that possible?

Also, since you are replying to this thread right now, can you please reply to my thread in ARI Photo Gallery and in ARI Fancybox forums.

Thank you.
The administrator has disabled public write access.
 
#6499
Re:Columns to display 14 Years, 3 Months ago Karma: 760
Hello,

Links based on table record data can be generated with help 'Format' parameter in module settings. Documentation how to use this parameter can be found in 'Description' field on module settings page.

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