Custom page use SQL query?

Archived from the Xataface Users forum.

thetraveler — Sat Nov 28, 2009 8:25 am

Hi,

I am new to Xataface and have a basic question. I have a custom page that uses the xataface’s template system. On this page, I would like to display some data by executing a SQL query. What would be the best way to do it? I don’t want to display them as check list nor selection buttons, so the method in the tutorial doesn’t quite work.

Much appreciate it if someone can give some hints.

Thanks in advance.


Jean — Tue Dec 01, 2009 12:55 am

Hi,

For the display you send an array

Code: Select all
df_display(array(), 'Foo.html');

For the templates, you could look at the Smarty documentation.

For the sql query… you have everything in the wiki and in this forum.

Jean