![]() |
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: |
Do you have the correct number of closing parens? Also you'll need a final dummy ELSE value.
|
exactly a final , '' before the first closing ) is needed
|
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] |
All times are GMT. The time now is 01:42 AM. |
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:
|