The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Ok, maybe I didn't call it right, then. Here is what I have now.
PHP Code:
Quote:
|
#12
|
|||
|
|||
It returns multiple rows, not one row (query() instead of query_first()).
|
#13
|
||||
|
||||
I get these errors at the top of the page when I run the following code:
Warning: Cannot use a scalar value as an array in /home/bear/public_html/forum/forumdisplay.php on line 738 Warning: Cannot use a scalar value as an array in /home/bear/public_html/forum/forumdisplay.php on line 739 PHP Code:
|
#14
|
|||
|
|||
Iterate through it using $DB_site->fetch_array()...have you extensively worked with MySQL through vB before?
|
#15
|
||||
|
||||
Not a whole lot, no. Simple queries, I can usually do.
I must not be getting it right or understanding it, I guess. I am still getting errors. This time it is: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/bear/public_html/forum/admin/db_mysql.php on line 149 |
#16
|
|||
|
|||
Iterate as such (just an example):
PHP Code:
|
#17
|
||||
|
||||
We figured out what I was doing wrong with the original code in post #1. I forgot to add:
AND forum.forumid=$forumid to the end of it. Now it returns the right info for each forum and runs fast. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|