|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
cboulton Guest
|
Posted: Fri Apr 25, 2003 1:50 pm Post subject: mySQL and Smarty for a new user |
|
|
I'm just getting started with Smarty. I've been using the xTemplates template engine. I'm having a hard time finding some code samples for using mySQL with Smarty.
I'm mostly interested in how to populate html tables with data from mySQL database. Simple stuff mostly.
Anyone know of a good place to find some code that does this type of stuff? |
|
Back to top |
|
ilir Smarty Rookie
Joined: 20 Apr 2003 Posts: 16 Location: NYC
|
|
Back to top |
|
cboulton Smarty n00b
Joined: 25 Apr 2003 Posts: 2
|
Posted: Fri Apr 25, 2003 2:04 pm Post subject: thanks! |
|
|
THat's great, I'll check it out. Does everyone think this is the best way to go? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri Apr 25, 2003 5:36 pm Post subject: |
|
|
Its a good way to start, I imagine. There doesn't seem to be a lot of support for the PHP dbx module but I like it. It is easy to use, fast and supports mysql. |
|
Back to top |
|
cboulton Smarty n00b
Joined: 25 Apr 2003 Posts: 2
|
Posted: Fri Apr 25, 2003 6:36 pm Post subject: db.php |
|
|
that example had a file used, db.php. DOes anyone know where that file / function is? |
|
Back to top |
|
Justin Smarty Regular
Joined: 07 May 2003 Posts: 38 Location: Vilnius, Lithuania
|
Posted: Wed May 07, 2003 5:23 pm Post subject: Re: db.php |
|
|
cboulton wrote: | that example had a file used, db.php. DOes anyone know where that file / function is? |
that's a pear database abstraction class. more information on http://pear.php.net/manual/en/package.database.php |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|