whizzykid Posted August 18, 2009 Share Posted August 18, 2009 I have this error anytime i try to update. Warning: sprintf() [function.sprintf]: Too few arguments in /home/stanecom/public_html/profile1 to update.php on line 42 Query was empty this is my code on line 42 GetSQLValueString($_POST['Status'], "text")); Link to comment https://forums.phpfreaks.com/topic/170781-showing-error/ Share on other sites More sharing options...
DrTrans Posted August 18, 2009 Share Posted August 18, 2009 Can you give us more code.. please. possible where sprintf() is called. Link to comment https://forums.phpfreaks.com/topic/170781-showing-error/#findComment-900667 Share on other sites More sharing options...
whizzykid Posted August 18, 2009 Author Share Posted August 18, 2009 $updateSQL = sprintf("UPDATE Account SET Transfer Balance=%s, `Status`=%s WHERE `Transfer Balance`=%s", GetSQLValueString($_POST['Transfer_Balance'], "int"), GetSQLValueString($_POST['Status'], "text")); Thanks. Link to comment https://forums.phpfreaks.com/topic/170781-showing-error/#findComment-900668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.