birbal Posted October 15, 2010 Share Posted October 15, 2010 PHP error[15-Oct-2010 08:15:05] PHP Warning: sprintf(): Too few arguments in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\regpage.php on line 247Mysql errorquery is emptycan any one please tell me why these error coming? $qry=sprintf("insert into forum values(NULL,'%1s','%1s',now(),'a')",$clean['nick']); $res=mysql_query($qry,$con); here is the code indicated at the line 247. $con is active mysql conection Link to comment Share on other sites More sharing options...
justsomeguy Posted October 15, 2010 Share Posted October 15, 2010 The format string has two arguments and you're only passing one, that's why the error message says you have too few arguments. Check the manual to see what you're missing:http://www.php.net/manual/en/function.sprintf.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.