首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

sprintf(): Too few arguments. why?

2012-09-22 
sprintf(): Too few arguments...why??you have % in one of the variables!?example:$Consulta sprintf

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

?

热点排行