Loading...
 
Skip to main content

Features / Usability


SQL queries and display of the result

Hi,

I found a way to make SELECT in the tiki pages.
The only problem is the tabular view that is done automatically.

For queries, I use the dBReport, whose code looks like this

Copy to clipboard
{DBREPORT(db=>ConnexionDSN)} SQL "SELECT * FROM laTable" {DBREPORT}

But the result is always in tabular form. In the documentation, I found a way to arrange the table but it does not fit all situations.

If anyone knows another way to make SQL queries, and at the same time display the data as we see fit, I'm interested 😊

Thank you in advance for those who help me;)

have a nice day
Thony aka Hardy

hardy021 wrote:
If anyone knows another way to make SQL queries, and at the same time display the data as we see fit, I'm interested 😊


You extensive control over the formatting and style of the DBReport plugin's output. Please see the docsQuestion for details.

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Now Available: Tiki EssentialsQuestion, the #1 (and only) book for Tiki! Learn more...Question
Coming Spring, 2011: Tiki for Dummies SmartiesQuestion, the best (and only) Tiki beginner's guide! Learn more...Question


Need more help? Try Tiki for Dummies SmartiesQuestion: A beginner's guide and Tiki EssentialsQuestion: What all Smarties need to know about Tiki Wiki CMS Groupware.

Rick Sapir / Tiki for Smarties wrote:
Please see the docsQuestion for details.


Before asking my question, I read the documentation ..
There is always something I can't do.

This is my page of staffQuestion. I try to get this result.

  1. Age is calculated from the date of birth.
  2. And, in my database, i have a field "email_pub" that returns 1 or 0.

If the result is 1, I display the email.

I do not know how to solve my problem in a wiki page..

is there a syntax for the conditions? If yes, could I have the documentation page? I do not find it in the documentation ..

Thank you for helping me 😊
Thony aka Hardy