`

sprintf(): Too few arguments... why??

 
阅读更多

you have % in one of the variables!

 

example:

$Consulta = sprintf ("UPDATE info_table SET title = '%s, alt = '%s', abstract = '%s', WHERE ref = '%s';", $title, $alt, $abstract, $ref);     //error

 

$Consulta = sprintf ("UPDATE info_table SET title = '%s', alt = '%s', abstract = '%s', WHERE ref = '%s';", $title, $alt, $abstract, $ref);     //right

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics