Custom page use SQL query?

A place for users and developers of the Xataface to discuss and receive support.

Custom page use SQL query?

Postby 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.
thetraveler
 
Posts: 1
Joined: Sat Nov 28, 2009 8:18 am

Postby 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
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 14 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved