The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Okay, still is erroring..[sql]UPDATE pchm_affiliates SET impressions = IF (
id = 8, '977', IF ( id = 3, '2062', IF ( id = 4, '996', IF ( id = 7, '941', IF ( id = 5, '1797', IF ( id = 10, '942', IF ( id = 1, '1976', IF ( id = 6, '1963', IF ( id = 2, '1973', IF ( id = 9, '940', IF ( id = 11, '834' ) ) ) ) ) ) ) ) ) ) ) WHERE id IN ( 8, 3, 4, 7, 5, 10, 1, 6, 2, 9, 11 ) [/sql] Code:
Error: MySQL said: 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 id IN ( 8, 3, 4, 7, 5, 10, 1, 6, 2, |
#12
|
|||
|
|||
Do you have the correct number of closing parens? Also you'll need a final dummy ELSE value.
|
#13
|
||||
|
||||
exactly a final , '' before the first closing ) is needed
|
#14
|
|||
|
|||
Thank you Xenon, I see now. 1 sec.. Awsome! It now works Thank you all.
Oh, and about that count problem I was having.. I got it! Just needed a GROUP BY:[sql]SELECT news.id AS newsid, COUNT(*) AS count FROM post AS post, pchm_news AS news WHERE post.threadid = news.forumid GROUP BY news.id LIMIT 0,30[/sql] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|