Page 1 of 1

variable substitute in PEAR DB

Posted: Thu Apr 14, 2005 6:44 pm
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

Posted: Thu Apr 14, 2005 7:02 pm
by feyd
%s is used in sprintf and printf.. php doesn't look at them one bit.