EDIT | I think I may have just spotted the problem...missing closing ) affected another query of mine so maybe thats it.
I have this line of code:
Code: Select all
$sql = sprintf("INSERT INTO %sproofs VALUES(0, $puid, $time, '$proof', '$rawdata'", DB_PREFIX);
Simple right? Spot the error, cause I don't...
Code: Select all
Warning: sprintf() [function.sprintf]: Too few arguments in /var/www/devine/core/functions.php on line 127
What am I missing, I frequently use this technique to construct SQL statements and I have never encountered this problem before...I'm quite irritated by this and I hope in my frustration I am missing something simple.