The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Tried executing this query, but keep getting a database error, 1064
PHP Code:
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 'ORDER BY pmtext.dateline DESC' at line 7 Error Number : 1064 |
#2
|
|||
|
|||
![]()
Unless it changed in a later beta, iif is no longer a vaild function AFAIK.
|
#3
|
||||
|
||||
![]()
iif sucked anyways.
iif($condition, $true, $false) should be ($condition ? $true : $false). |
#4
|
|||
|
|||
![]()
Check if $folderid is not empty.
|
#5
|
||||
|
||||
![]()
I'm using:
PHP Code:
|
#6
|
|||
|
|||
![]() PHP Code:
PHP Code:
|
#7
|
|||
|
|||
![]()
Acually you made a type-o Marco.
PHP Code:
PHP Code:
![]() |
#8
|
||||
|
||||
![]() Quote:
Invalid SQL: Code:
SELECT pm.*, pmtext.* , icon.title AS icontitle, icon.iconpath FROM pm AS pm LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid) LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid) WHERE pm.userid=1 AND pm.folderid= ORDER BY pmtext.dateline DESC; 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 'ORDER BY pmtext.dateline DESC' at line 7 Error Number : 1064 Appears to be: PHP Code:
|
#9
|
|||
|
|||
![]()
Yeah i saw after i submitted (double click not only select the word, but also the space after), but i thought he would figure that out.
|
#10
|
|||
|
|||
![]()
That error is due to one of two possiablities.
1) pm.userid is showing up as empty. Or 2) pm.folderid is showing up as empty |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|