The Red Devil
06-15-2003, 03:59 PM
I wrote this thread over at the creators support forum, but Ill ask here to cause Im not sure if it was the right place to ask. The link to the thread I made over there is:link (http://www.vbulletin.com/forum/showthread.php?goto=postid&postid=473283)
But over ot the problem, Ill make a short description.
Suddenly I was getting an error while running "Update Thread Info" the error was "mysql error number: 1064" and it seems like it gave an error on the attach field. I checked this some more and yes, on all threads without an attachment (ie 0)it dont give a value (nothing) but those that got an attachment (ie 1) it works perfectly and it updates those. (Been posting threads with and without to find it out).
So I checked the misc.php file but cant find one error (I havnt been editing that file before either so its the original one) so I made this code and added it before the update query
if ($attachsum == "1") {$attachsum = "1";} else {$attachsum = "0";}
It works, all the threads got updated like they was supposed to be without a problem. And all seems to work, all attachments is still in those posts that had em etc
But will it be safe for me to keep that code part there ? Im no programmer, only been learning some php in my spare time and I dont wanna make a error which might screw up my forum database.
If anyone knows if it will work, or got any suggestions what to do I would really appriciate it. Thanks
But over ot the problem, Ill make a short description.
Suddenly I was getting an error while running "Update Thread Info" the error was "mysql error number: 1064" and it seems like it gave an error on the attach field. I checked this some more and yes, on all threads without an attachment (ie 0)it dont give a value (nothing) but those that got an attachment (ie 1) it works perfectly and it updates those. (Been posting threads with and without to find it out).
So I checked the misc.php file but cant find one error (I havnt been editing that file before either so its the original one) so I made this code and added it before the update query
if ($attachsum == "1") {$attachsum = "1";} else {$attachsum = "0";}
It works, all the threads got updated like they was supposed to be without a problem. And all seems to work, all attachments is still in those posts that had em etc
But will it be safe for me to keep that code part there ? Im no programmer, only been learning some php in my spare time and I dont wanna make a error which might screw up my forum database.
If anyone knows if it will work, or got any suggestions what to do I would really appriciate it. Thanks