variable substitute in PEAR DB

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
sulen
Forum Commoner
Posts: 79
Joined: Wed Jul 09, 2003 4:55 pm
Location: los angeles
Contact:

variable substitute in PEAR DB

Post by sulen »

$selectSql = "select from field where fieldname=%s"

In PHP we use %s as a variable substitute. I just wanted to know if in PEAR DB %s is used as a variable substitute also. Any help will be appreciated. Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

%s is used in sprintf and printf.. php doesn't look at them one bit.
Post Reply