View Single Post
Old 10-11-2007, 04:53 PM  
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
Who here knows Smarty? I have a quick question

according to this smarty doc, http://smarty.php.net/manual/en/config.files.php you can gain access to a mysql database.

And according to this doc,
http://smarty.php.net/manual/en/api.config.load.php you can load those configs into the php file.

But how do you tell the php which table to use within that database?

I'm really new to php, smarty, and mysql. But from what I can gather in mysql and php, you connect to the mysql and then you connect to the table you want to call info from.

So how do you do that with smarty?

OR

Is it better to just create a config file of an associative array of data?


I asked that on the smarty board but after being on GFY for years all other boards move slow as shit.
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote