The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
trying to do a simple query
first of all, I've had no luck with the $DB_SITE command, it's given me nothing but problems for the query I want to do.
I have replaced : PHP Code:
PHP Code:
but... check this weirdness out! this is the SQL error i get : and i get the following error : Code:
Database error in vBulletin 2.2.9: Invalid SQL: SELECT title FROM thread WHERE threadid= 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: Friday 23rd of May 2003 07:26:51 PM Script: http://www.samplecity.net/forum/forum/newreply.php Referer: http://www.samplecity.net/forum/newr...threadid=21353 ..jordan willms |
#2
|
||||
|
||||
Show us the bit of code around [sql]SELECT title FROM thread WHERE threadid=[/sql]
|
#3
|
|||
|
|||
that is what is very strange. THERE IS no occurance of
PHP Code:
|
#4
|
||||
|
||||
Because the conditions and arguments are variables.
Anyways, I can't even find that in my newreply.php |
#5
|
||||
|
||||
You don't need to make a connection to the db as it's already there...
- miSt |
#6
|
|||
|
|||
then what the heck do i do? I've tried using the DB_SITE technique, but it NEVER works, at least for what i am trying to do.
|
#7
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|