View Full Version : DB issues :(
ProParadox
07-25-2003, 04:07 PM
Database error in vBulletin Control Panel 2.3.0:
Invalid SQL: UPDATE thread SET lastpost=1059146227,replycount=0,postusername='Bri an L.', postuserid='2', lastposter='Brian L.',attach= WHERE threadid=3
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE threadid=3' at line 1
mysql error number: 1064
I JUST installed my forums. I dont get why, or whats happening.
Kriek
07-25-2003, 06:56 PM
I experienced a similar problem. Open admin/misc.php and verify your variables have double quotes enclosed within single quotes, so for instance if the attach sum is empty (attachments turned off) then the correct syntax will still be outputted.
$DB_site->query("UPDATE thread SET lastpost='".$lastpost."',replycount='".$numberposts."',
postusername='".addslashes($firstusername)."', postuserid='".$firstuserid."',
lastposter='".addslashes($lastusername)."',attach='".$attachsum."' WHERE threadid='".$threadid."'");
ProParadox
07-25-2003, 09:16 PM
fixed. Thanks!
Erwin
07-25-2003, 11:55 PM
ProParadox,
You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (http://www.vbulletin.com/members/forums.php) (vB-germany users click here (http://www.vbulletin-germany.com/members/forums.php)) and enter your email address, to show us that you are licensed.
You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.
Thank you.
Kriek
07-26-2003, 12:22 AM
Today at 06:16 PM ProParadox said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=420640#post420640)
Fixed. Thanks!
No problem, glad I could be of assistance to you ;)
Erwin
07-26-2003, 06:26 AM
Okay, you are now appearing as licensed. Thanks! :)
lifesourcerec
09-03-2003, 04:02 AM
That worked :) Thanks.
TLucent
09-03-2003, 05:17 AM
$DB_site->query("UPDATE thread SET lastpost=$lastpost,replycount=$numberposts,postuse rname='".addslashes($firstusername)."', postuserid='$firstuserid', lastposter='".addslashes($lastusername)."',attach=$attachsum WHERE threadid=$threadid");
this is what I have in my misc.php file
ExSIK
09-03-2003, 06:30 AM
It didnt fix my Error :( http://www.exsic.org
lifesourcerec
09-03-2003, 10:28 AM
Today at 07:17 AM TLucent said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=430904#post430904)
$DB_site->query("UPDATE thread SET lastpost=$lastpost,replycount=$numberposts,postuse rname='".addslashes($firstusername)."', postuserid='$firstuserid', lastposter='".addslashes($lastusername)."',attach=$attachsum WHERE threadid=$threadid");
this is what I have in my misc.php file
I had that also, but commented it out and replaced it with what's above and it fixed my problem.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.