The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
HELP! Here is the orignal code
$pop1 = $DB_site->query('SELECT title,threadid,views FROM thread ORDER BY views DESC LIMIT 1'); Im trying to block out all replys from showing up from forum 41 this is what I tried, but its not working $pop1 = $DB_site->query('SELECT title,threadid,views FROM thread WHERE forumid<>41 ORDER BY views DESC LIMIT 1'); so what else can I do? snyx |
#2
|
||||
|
||||
Try:
$pop1 = $DB_site->query("SELECT title,threadid,views FROM thread WHERE forumid<>'41' ORDER BY views DESC LIMIT 1"); I have an almost identical query with the quotes like that and it works. It's worth a try. |
#3
|
|||
|
|||
The sad thing is that is exactly what I told him.. which we tried a few times.. with no success.. then I just erased the line.. and started over... uploaded and refreshed and it worked..
now I have NO clue what space, character that was there or no there... that was messing it up.. but geeze.. took me an hour just to figure it out.. cause I was actually working on something similar to this yesterday and had to use almost the same query.. just with different info.. lol thanks FWC.. thought I was loosing my mind.. |
#4
|
||||
|
||||
$pop1 = $DB_site->query("SELECT title,threadid,lastpost,lastposter,views FROM thread WHERE forumid<>'41' AND forumid<>'41' AND forumid<>'41' ORDER BY
views DESC LIMIT 1"); hmm... you can laugh at me later I tryed this and it wored for me. |
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
Quote:
Code:
$pop1 = $DB_site->query('SELECT title,threadid,views FROM thread WHERE forumid<>='41' ORDER BY views DESC LIMIT 1'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|