Forums / Developer / How can I make database connection to retreive my data in tpl?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How can I make database connection to retreive my data in tpl?

Author Message

Rizwan Ahmad

Friday 11 July 2003 5:21:52 am

I can create a table in mysql "nextgen". Now my question is how can I make the database connection and retreive the data in the tpl. How can I develop database driven application using Exponential

Plz. help

Karsten Jennissen

Friday 11 July 2003 5:42:47 am

If you just want to get data from the current structure you can use the fetch function.

http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetch_function_examples

If you have something, that cannot be solved with the flexible data structures of Exponential, you can write your own extension.

http://ez.no/developer/ez_publish_3/documentation/development/extensions

Karsten

Rizwan Ahmad

Monday 14 July 2003 12:36:30 am

Can I use my sql query in the fetch statement as well