Log in

View Full Version : Database Error?


auveeb
01-26-2005, 06:16 PM
I keep getting this error when I reply to a Private Message at my site.
Database error in vBulletin 3.0.6:

Invalid SQL: INSERT INTO pm (pmtextid, userid) VALUES (51, )
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 ')' at line 1

mysql error number: 1064

Date: Wednesday 26th of January 2005 03:13:54 PM
Script: http://www.*.com/private.php
Referer: http://www.*.*/private.php?do=newpm&pmid=72
Username: Theory
IP Address: 69.203.***.***

How do I fix this?

Andreas
01-26-2005, 06:22 PM
The userid is empty when this query is being executed, but I don't know why.
Best suggestion would be to replace private.php with the original version.

auveeb
01-26-2005, 06:34 PM
Yeah, I figured that was the problem
I created a registration script that could be used on non-vB pages..Guess that didn't work out right.