The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Trouble getting results with this query
For the life of me I can't get this to return any results other than 0. It works great in phpmyadmin though.
Note: I had to attach it in a txt file because it makes the post go to a blank page no matter what bbcode I wrap it in. |
#2
|
|||
|
|||
Not sure if this would be your problem or not, but try changing the variable name of the query to $months and adding a line below it:
$month = mysql_fetch_array($months); As far as my experience goes, queries don't return as associative arrays by default. |
#3
|
||||
|
||||
Shouldn't this code be changed?
Code:
$month['count'] Code:
$month['posts'] Code:
COUNT(postid) AS posts |
#4
|
||||
|
||||
Ahh.. I knew someone would spot it, thanks!
|
#5
|
|||
|
|||
Also you are mixing single quotes and double quotes in the query statement.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|