![]() |
What Am I Doing Wrong?
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 |
Unless it changed in a later beta, iif is no longer a vaild function AFAIK.
|
iif sucked anyways.
iif($condition, $true, $false) should be ($condition ? $true : $false). |
Check if $folderid is not empty.
|
I'm using:
PHP Code:
|
PHP Code:
PHP Code:
|
Acually you made a type-o Marco.
PHP Code:
PHP Code:
|
Quote:
Invalid SQL: Code:
SELECT pm.*, pmtext.* Appears to be: PHP Code:
|
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.
|
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 |
Quote:
Now to figure out why folderid isn't being generated... |
Well your default inbox is folderid 0. Do some debugging. Change this line:
PHP Code:
PHP Code:
|
1 Attachment(s)
Quote:
I'm trying to port one of Scott's other hacks.. |
1 Attachment(s)
As supected, $folderid was empty and not defined. vBulletin 3.5.0 no longer uses INT .
This: PHP Code:
PHP Code:
PHP Code:
|
Then at least make that:
PHP Code:
|
Quote:
|
Opps, good point Marco, Thanks for that
|
Quote:
ie: # (#) rather than Inbox (#) |
The inbox is also considered a folder.
|
All times are GMT. The time now is 02:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|