读书人

sprintf(): Too few arguments. why?

发布时间: 2012-09-22 21:54:54 作者: rapoo

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

?

读书人网 >Web前端

热点推荐