The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a few lines of code that work, but I want to be able to read from the database instead of hardcoding
Part that works: PHP Code:
Query I want to use: "SELECT id FROM `tablename` where catid=1" Is mysql_fetch_array the right command to use? If so, I can't quite get it to work. Or is there a better command? I see data if I do a while loop (below), but not sure how to do anything else (while loop that shows I'm at least retrieving data) PHP Code:
Thanks |
#2
|
|||
|
|||
![]()
If that while loop is printing out the right data then I think you just need
PHP Code:
|
#3
|
|||
|
|||
![]()
Where's the 'Thank' button, lol. That worked perfectly!
Thanks! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|