The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I am trying to pull data from my DB and display it as a table in a Forum Side Block. I can not figure out where I am going wrong I have looked at multiple posts on here and Vbulletin.com and none of them seem to help me. When viewing this please keep in mind I am self taught and a novice at this. Here is my code for the side block..... If you see where I screwed up or know a better way to pull this info please let me know.
PHP Code:
|
|
#2
|
||||
|
||||
|
you should return value not echo
PHP Code:
for example PHP Code:
|
| Благодарность от: | ||
| Lynne | ||
|
#3
|
|||
|
|||
|
alright just so I am understanding right in place of
PHP Code:
PHP Code:
Ok used the new pieces of code you gave me and I no longer get the string error but the data is not being displayed. Is there something else I am missing? |
|
#4
|
||||
|
||||
|
You'll also need to update the condition of the while loop.
From: Code:
while($row = mysql_fetch_array($result)){
Code:
while($row = vB::$db->fetch_array($result)){
|
|
#5
|
|||
|
|||
|
Quote:
Tried this and still no display. Still have no idea what I am doing wrong or if a forum block is even capable of displaying this info. Any more assistance is appreciated. |
|
#6
|
||||
|
||||
|
This code is tested
PHP Code:
|
|
#7
|
|||
|
|||
|
That does work but their are multiple match results for each team Id is there a way to sum up the wins and losses for each team id? SO that it doesnt come out like below.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|